SavedStateRegistry.SavedStateProvider



Contributes to the saved state.

Summary

Public functions

SavedState

Called to retrieve the state from a component before it is killed so the state can be retrieved later from consumeRestoredStateForKey.

Cmn
android

Public functions

saveState

fun saveState(): SavedState

Called to retrieve the state from a component before it is killed so the state can be retrieved later from consumeRestoredStateForKey.

Returns
SavedState

The SavedState containing the saved state.