2022-05-12 03:20 AM
I don't understand role of presenter in the MPV framework why can't I pass data from model directly to view. Also, why should I pass data from view to presenter to model why can't I pass data directly to main using a queue in the view?
2022-05-12 06:32 AM
MVP is an abstraction model with the help of which you can design a system that is implemented in several levels (i.e. Model - View - Presenter). The model is not interested in what happens in the view and vice versa. Everything that is to be shown on the view must pass through the presenter, which forms the logic behind the view.
If you stick to this structure, you can adapt the system to new displays, for example, with only a few changes.
Of course, no one forces you to stay in MVP, but then you have to take care of every detail yourself, also and especially when changing e.g. the display just mentioned.
Does it answer your question?
Regards
/Peter