public interface PersistableView
FlowCoordinator
will save resp. restore the view state by calling the respective method.
WebView and other views work differently when it comes to store the
state. As such the view can decide by itself how the storage should occur.
| Modifier and Type | Method and Description |
|---|---|
void |
restoreViewState(android.os.Bundle inState)
This method is called to restore the state from
inState bundle. |
void |
saveViewState(android.os.Bundle outState)
This method is called when the state of the view should be persisted.
|
void saveViewState(android.os.Bundle outState)
The implementor may store within this method the data which should a destruction of the view should survive.
outState - the bundle into which the view data should be written into.void restoreViewState(android.os.Bundle inState)
inState bundle.
The implementor may read the data which are relevant from the bundle and restore the view's inner state.
inState - the bundle from which the state should be reconstructed.