public abstract class RxMvpLceViewStateAppCompatActivity<CV extends android.view.View,M,V extends <any>,P extends <any>>
extends <any>
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
restoringViewState |
protected <any> |
viewState |
| 构造器和说明 |
|---|
RxMvpLceViewStateAppCompatActivity() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract <any> |
createViewState()
Creates the viewstate
|
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() |
<any> |
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> getMvpDelegate()
public <any> getViewState()
public void setViewState(<any> viewState)
public void setRestoringViewState(boolean restoringViewState)
public boolean isRestoringViewState()
public void onNewViewStateInstance()
public void onViewStateInstanceRestored(boolean instanceStateRetained)
public void showContent()
public void showError(Throwable e, boolean pullToRefresh)
public void showLoading(boolean pullToRefresh)
protected void showLightError(String msg)
public abstract <any> createViewState()
public abstract M getData()
It's necessary to return the same data as set before to ensure that {mylink ViewState} works correctly