public abstract class RxMvpViewStateAppCompatActivity<V extends MvpView,P extends <any>>
extends <any>
You can change the behaviour of what to do if the viewstate is empty (usually if the activity creates the viewState for the very first time and therefore has no state / data to restore) by overriding {mylink #onNewViewStateInstance()}
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
restoringViewState
A simple flag that indicates if the restoring ViewState is in progress right now.
|
protected <any> |
viewState |
| 构造器和说明 |
|---|
RxMvpViewStateAppCompatActivity() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract <any> |
createViewState()
Creates the ViewState instance
|
protected <any> |
getMvpDelegate() |
<any> |
getViewState() |
boolean |
isRestoringViewState() |
void |
onViewStateInstanceRestored(boolean instanceStateRetained) |
void |
setRestoringViewState(boolean restoringViewState) |
void |
setViewState(<any> viewState) |
protected <any> viewState
protected boolean restoringViewState
protected <any> getMvpDelegate()
public <any> getViewState()
public void setViewState(<any> viewState)
public void setRestoringViewState(boolean restoringViewState)
public boolean isRestoringViewState()
public void onViewStateInstanceRestored(boolean instanceStateRetained)
public abstract <any> createViewState()