Home - moxy-community/Moxy GitHub Wiki
Moxy is Android MVP helper library

What's happened here:
- At View happened action
, that is passed to Presenter - Presenter sends command
to ViewState - ViewState adds a command
to commands queue, and then passes it to View - View brings itself into a state specified in the command

- Presenter starts async request
to Model - Presenter receives result of request
from Model - Presenter sends command
to ViewState - ViewState adds a command
to commands queue, remove existing command
and then passes it to View - View brings itself into a state specified in the command

- Presenter sends command
to ViewState - ViewState adds a command
to commands queue and then passes it to View - View brings itself into a state specified in the command

- New/recreated View attach to existing Presenter
- ViewState sends queue of saved commands to new/recreate View
- New/recreated View brings itself into a state specified in the commands
and 