Google is committed to advancing racial equity for Black communities. See how.

androidx.savedstate

Classes

SavedStateRegistry

An interface for plugging components that consumes and contributes to the saved state.

SavedStateRegistryController

An API for SavedStateRegistryOwner implementations to control SavedStateRegistry.

ViewTreeSavedStateRegistryOwner

Accessors for finding a view tree-local SavedStateRegistryOwner that allows managing the saving state using SavedStateRegistry for the given view.

Extension functions summary

Extension functions

findViewTreeSavedStateRegistryOwner

fun View.findViewTreeSavedStateRegistryOwner(): SavedStateRegistryOwner?

Locates the SavedStateRegistryOwner associated with this View, if present. This may be used to save and restore the state associated with this view.