public abstract class RxMvpViewStateFragment<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 fragment creates the viewState for the very first time and therefore has no state / data to restore) by overriding {mylink #onNewViewStateInstance()}
| 限定符和类型 | 字段和说明 |
|---|---|
protected <any> |
viewState
The viewstate will be instantiated by calling {mylink #createViewState()} in {mylink
#onViewCreated(View, Bundle)}.
|
| 构造器和说明 |
|---|
RxMvpViewStateFragment() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract ViewState |
createViewState()
Create the view state object of this class
|
protected <any> |
getMvpDelegate() |
ViewState |
getViewState() |
boolean |
isRestoringViewState() |
void |
onViewStateInstanceRestored(boolean instanceStateRetained) |
void |
setRestoringViewState(boolean restoringViewState) |
void |
setViewState(<any> viewState) |
protected <any> viewState
public abstract ViewState createViewState()
protected <any> getMvpDelegate()
public ViewState getViewState()
public void setViewState(<any> viewState)
public void setRestoringViewState(boolean restoringViewState)
public boolean isRestoringViewState()
public void onViewStateInstanceRestored(boolean instanceStateRetained)