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 a command was applied to an
MvpView. |
<View extends MvpView> |
beforeApply(java.util.List<ViewCommand<View>> currentState,
ViewCommand<View> incomingCommand)
Called immediately after
MvpViewState receives some
command. |
<View extends MvpView> void beforeApply(java.util.List<ViewCommand<View>> currentState, ViewCommand<View> incomingCommand)
MvpViewState receives some
command. Will not be called before re-apply to some other
MvpViewView - type of the given viewcurrentState - current state of MvpViewState. Each ViewCommand contains its own parameters.incomingCommand - command for applying to a 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 the given viewcurrentState - current state of MvpViewState. Each ViewCommand contains its own parameters.incomingCommand - applied command to MvpView This ViewCommand contains params of this
command.