How to access to a model variable from a custom class.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-06-22 2:12 AM
I have a custom class doing stuff, it's not made from touchGFX , so it doesn't have a presenter for comunicating with the model.
i need to read a value from a structure in the model.
Tnx
Labels:
- Labels:
-
TouchGFX
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-06-23 6:48 PM
Does it need to have that direction? Usually you'd just update the class via the Model::tick() or modelListener interface when something happens, or update it once a presenter becomes active . E.g.
void MyPresenter::activate()
{
myClass.set(model.get());
}
