Package-level declarations
Types
Link copied to clipboard
object RespawnDefaults
Default constants used by the Respawn library for saving and restoring state.
Properties
Functions
Link copied to clipboard
Checks if the state associated with the given key was successfully restored from process death.
Link copied to clipboard
Link copied to clipboard
inline fun SavedStateHandle.onRestore(key: String = DEFAULT_KEY, restore: () -> Unit): SavedStateHandle
Link copied to clipboard
inline fun <T : @Serializable Any> SavedStateHandle.respawnMutableStateFlow(init: () -> T, key: String = RespawnDefaults.DEFAULT_KEY, configuration: SavedStateConfiguration = SavedStateConfiguration.DEFAULT): MutableStateFlow<T>
Creates a MutableStateFlow that is automatically saved and restored across process death.