View State Cache
Handles persistence chores for container views that manage a set of Named renderings, showing a view for one at a time -- think back stacks or tab sets.
This class implements Parcelable so that it can be preserved from a container view's own View.saveHierarchyState method. A simple container can return SavedState from that method rather than creating its own persistence class.
Constructors
ViewStateCache
Link copied to clipboard
fun ViewStateCache()
Content copied to clipboard
Types
CREATOR
Link copied to clipboard
SavedState
Link copied to clipboard
Convenience for use in View.onSaveInstanceState and View.onRestoreInstanceState methods of container views that have no other state of their own to save.
Functions
describeContents
Link copied to clipboard
prune
Link copied to clipboard
update
Link copied to clipboard
fun update(retainedRenderings: Collection<Named<*>>, oldViewMaybe: View?, newView: View)
Content copied to clipboard
writeToParcel
Link copied to clipboard