SavedStateRegistry.AutoRecreated

interface SavedStateRegistry.AutoRecreated


Subclasses of this interface will be automatically recreated if they were previously registered via runOnNextRecreation.

Subclasses must have a default constructor

Summary

Public functions

Unit

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

Public functions

onRecreated

Added in 1.0.0
fun onRecreated(owner: SavedStateRegistryOwner): Unit

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

Parameters
owner: SavedStateRegistryOwner

a component that was restarted