public abstract class RxMvpLceViewStateFragment<CV extends android.view.View,M,V extends <any>,P extends <any>>
extends <any>
| 限定符和类型 | 字段和说明 |
|---|---|
protected <any> |
viewState
The viewstate will be instantiated by calling {mylink #createViewState()} in {mylink
#onViewCreated(View, Bundle)}.
|
| 构造器和说明 |
|---|
RxMvpLceViewStateFragment() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract <any> |
createViewState()
Create the view state object of this class
|
abstract M |
getData()
Get the data that has been set before in {mylink #setData(Object)}
It's necessary to return the same data as set before to ensure that {mylink ViewState} works
correctly
|
protected <any> |
getMvpDelegate() |
ViewState |
getViewState() |
boolean |
isRestoringViewState() |
void |
onNewViewStateInstance() |
void |
onViewStateInstanceRestored(boolean instanceStateRetained) |
void |
setRestoringViewState(boolean restoringViewState) |
void |
setViewState(<any> viewState) |
void |
showContent() |
void |
showError(Throwable e,
boolean pullToRefresh) |
protected void |
showLightError(String msg) |
void |
showLoading(boolean pullToRefresh) |
protected <any> viewState
public abstract <any> createViewState()
protected <any> getMvpDelegate()
public ViewState getViewState()
public void setViewState(<any> viewState)
public void showContent()
public void showError(Throwable e, boolean pullToRefresh)
public void showLoading(boolean pullToRefresh)
public void setRestoringViewState(boolean restoringViewState)
public boolean isRestoringViewState()
public void onViewStateInstanceRestored(boolean instanceStateRetained)
public void onNewViewStateInstance()
protected void showLightError(String msg)
public abstract M getData()
It's necessary to return the same data as set before to ensure that {mylink ViewState} works correctly