DpadStateRegistry

Saves and restores scroll states and ViewHolder states. Check DpadScrollState and DpadViewHolderState for more information.

This class is lifecycle-aware and will contribute to Activity.onSaveInstanceState or Fragment.onSaveInstanceState via SavedStateRegistryOwner, unless setSaveInstanceStateEnabled is used to disable this behavior.

Constructors

Link copied to clipboard
constructor(registryOwner: SavedStateRegistryOwner)

Functions

Link copied to clipboard
Link copied to clipboard

Control whether state should be saved via Activity.onSaveInstanceState or Fragment.onSaveInstanceState, false otherwise. Default is true.