public interface StateStrategy
| Modifier and Type | Method and Description |
|---|---|
<View extends MvpView> |
afterApply(java.util.List<ViewCommand<View>> currentState,
ViewCommand<View> incomingCommand)
Called immediately after command applied to
MvpView. |
<View extends MvpView> |
beforeApply(java.util.List<ViewCommand<View>> currentState,
ViewCommand<View> incomingCommand)
Called immediately after
MvpViewState receive some
command. |
<View extends MvpView> void beforeApply(java.util.List<ViewCommand<View>> currentState, ViewCommand<View> incomingCommand)
MvpViewState receive some
command. Will not be called before re-apply to some other
MvpViewView - type of incoming viewcurrentState - current state of
MvpViewState. Each ViewCommand
contains self parameters.incomingCommand - command for apply to MvpView This
ViewCommand contains params of this command.<View extends MvpView> void afterApply(java.util.List<ViewCommand<View>> currentState, ViewCommand<View> incomingCommand)
MvpView. Also called
after re-apply to other views.View - type of incoming viewcurrentState - current state of
MvpViewState. Each ViewCommand
contains self parameters.incomingCommand - applied command to MvpView This
ViewCommand contains params of this command.