NonNullSavedStateHandleKey

Key for values stored in SavedStateHandle. The type of the value associated with this key is T (non-null)

NOTE: When using key directly, you must ensure that the value associated with the key has type T. Otherwise, it may throw kotlin.ClassCastException or kotlin.NullPointerException when using this key with SafeSavedStateHandle.

Parameters

key

the key

defaultValue

the default value is used if no value is associated with the key

See also

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

NOTE: When using key directly, you must ensure that the value associated with the key has type T. Otherwise, it may throw kotlin.ClassCastException or kotlin.NullPointerException when using this key with SafeSavedStateHandle.