SavedStateRegistry.AutoRecreated

public 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 methods

abstract void

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

Public methods

onRecreated

Added in 1.0.0
abstract void onRecreated(@NonNull SavedStateRegistryOwner owner)

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

Parameters
@NonNull SavedStateRegistryOwner owner

a component that was restarted