dimanche 14 janvier 2018

How to handle onBackPress of activity with Multiple Fragments by following MVP?

In general without MVP, usually I create an interface for that purpose and let the fragments implement that interface than ovveride onBackPressed() of activity and call interface.OnBackPressed() to handle the functionality.

But i am confused that how should i handle it with MVP or I should say how to handle it correctly with MVP.

What is the best way to do the same?

Aucun commentaire:

Enregistrer un commentaire