SavedStateRegistry.AutoRecreated

public static interface SavedStateRegistry.AutoRecreated

androidx.savedstate.SavedStateRegistry.AutoRecreated


Subclasses of this interface will be automatically recreated if they were previously registered via {SavedStateRegistry.runOnNextRecreation(Class)}.

Subclasses must have a default constructor

Summary

Public methods

abstract void onRecreated(SavedStateRegistryOwner owner)

This method will be called during dispatching of Lifecycle.Event.ON_CREATE of owning component.

Public methods

onRecreated

public abstract void onRecreated (SavedStateRegistryOwner owner)

This method will be called during dispatching of Lifecycle.Event.ON_CREATE of owning component.

Parameters
owner SavedStateRegistryOwner: a component that was restarted