The Android Developer Challenge is back! Submit your idea before December 2.

SavedStateRegistry.SavedStateProvider

public static interface SavedStateRegistry.SavedStateProvider

androidx.savedstate.SavedStateRegistry.SavedStateProvider


This interface marks a component that contributes to saved state.

Summary

Public methods

abstract Bundle saveState()

Called to retrieve a state from a component before being killed so later the state can be received from SavedStateRegistry.consumeRestoredStateForKey(String)

Public methods

saveState

public abstract Bundle saveState ()

Called to retrieve a state from a component before being killed so later the state can be received from SavedStateRegistry.consumeRestoredStateForKey(String)

Returns
Bundle S with your saved state.