Skip to content
Alexander Blinov edited this page Nov 26, 2017 · 29 revisions

Moxy is Android MVP helper library

schemmatic_using

What's happened here:

  1. At View happened action orange_triangle, that is passed to Presenter
  2. Presenter sends command orange_circle to ViewState
  3. ViewState adds a command orange_circle to commands queue, and then passes it to View
  4. View brings itself into a state specified in the command orange_circle
  5. Presenter starts async request green square to Model
  6. Presenter receives result of request green square from Model
  7. Presenter sends command red_circle to ViewState
  8. ViewState adds a command red_circle to commands queue, remove existing command orange_circle and then passes it to View
  9. View brings itself into a state specified in the command red_circle
  10. Presenter sends command green_circle to ViewState
  11. ViewState adds a command green_circle to commands queue and then passes it to View
  12. View brings itself into a state specified in the command green_circle
  13. New/recreated View attach to existing Presenter
  14. ViewState sends queue of saved commands to new/recreate View
  15. New/recreated View brings itself into a state specified in the commands red_circle and green_circle

References

[EN] Android without Lifecycle: MPVsV approach with Moxy
[EN] MVP on steroids - how we force the robot to write code for you

[RU] Moxy — реализация MVP под Android с щепоткой магии
[RU] Android в лицах — выпуск про Moxy (youtube)
[RU] Moxy. Из чего состоит и как этим пользоваться (youtube)
[RU] Moxy. Как правильно пользоваться? (youtube)
[RU] MVP на стероидах: заставляем робота писать код за вас
[RU] Moxy. Из чего состоит и как этим пользоваться (slideshare)
[RU] MVP, Moxy. Как правильно пользоваться (slideshare)
[RU] Стратегии в Moxy (часть 1)
[RU] Стратегии в Moxy (часть 2)