Únete a ⁠ #Android11: The Beta Launch Show el 3 de junio.

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.