public interface ViewState
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getTag()
Get an unique tag to save this ViewState's state to ViewStateCache.
|
void |
onBind(Presenter presenter)
Called when bind this ViewState to a Presenter.
|
void |
onRestore(java.lang.String data)
Called when restore the state of this ViewState.
|
java.lang.String |
onSave()
Called when save this ViewState's data.
|
boolean |
onUnbind(Presenter presenter)
Called when unbind this ViewState from a Presenter.
|
void |
setTag(java.lang.String tag)
Set this ViewState's tag.
|
java.lang.String getTag()
void setTag(java.lang.String tag)
tag - void onRestore(java.lang.String data)
data - java.lang.String onSave()
void onBind(Presenter presenter)
presenter - boolean onUnbind(Presenter presenter)
presenter -