SavedStateDelegate

A platform-agnostic interface for persisting UI state across system-initiated process death.

This is primarily used on Android to ensure that rationale or settings guide dialogs remain visible if the OS kills the app process while the user is away.

Inheritors

Functions

Link copied to clipboard
abstract fun clear(key: String)

Clears a persisted state value.

Link copied to clipboard
abstract fun restoreState(key: String): String?

Retrieves a persisted state value.

Link copied to clipboard
abstract fun saveState(key: String, value: String)

Persists a state value.