Register now for Android Dev Summit 2019!

AutoRecreated

interface AutoRecreated
androidx.savedstate.SavedStateRegistry.AutoRecreated

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

Subclasses must have a default constructor

Summary

Public methods

abstract Unit

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

Public methods

onRecreated

abstract fun onRecreated(@NonNull owner: SavedStateRegistryOwner): Unit

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

Parameters
owner SavedStateRegistryOwner: a component that was restarted