SavedStateRegistry.SavedStateProvider

fun interface SavedStateRegistry.SavedStateProvider


This interface marks a component that contributes to saved state.

Summary

Public functions

Bundle

Called to retrieve a state from a component before being killed so later the state can be received from consumeRestoredStateForKey

Public functions

saveState

Added in 1.0.0
fun saveState(): Bundle

Called to retrieve a state from a component before being killed so later the state can be received from consumeRestoredStateForKey

Returns S with your saved state.