public class CrossViewStatePresenter<ViewState,View extends StatelessView<ViewState>> implements ConnectablePresenter<View>
@Nullable protected ViewState getState()
protected void setState(@Nullable
ViewState p)
public void resume(@NotNull
View view)
Called when presenter should resume operations.
view - which will be used to display data.public void pause()
Called when presenter should pause operation. This is the default state. At this state view will never be updated even if some long-running operation completes after this point.
public boolean back()
Called when presenter should navigate back.
public void updateState(ViewState state)
Updates state of the current view or stores state until view is available.