# SavedStateWriter

Artifact: [androidx.savedstate:savedstate](https://developer.android.com/jetpack/androidx/releases/savedstate) [View Source](https://cs.android.com/search?q=file:androidx/savedstate/SavedStateWriter.+class:androidx.savedstate.SavedStateWriter) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

*** ** * ** ***

Common/AllAndroid/JVM
- Cmn

  ```
  value class SavedStateWriter
  ```

*** ** * ** ***

An inline class that encapsulates an opaque `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`, and provides an API for writing the platform specific state.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/savedstate/package-summary#(androidx.savedstate.SavedState).write(kotlin.Function1)` |   |

## Summary

| ### Public functions |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#clear()()` Removes all key-value pairs from the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putAll(android.os.Bundle)(from: https://developer.android.com/reference/android/os/Bundle.html)` Stores all key-value pairs from the provided `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState` into this `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putAll(androidx.savedstate.SavedState)(from: https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState)` Stores all key-value pairs from the provided `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState` into this `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putBinder(kotlin.String,android.os.IBinder)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://developer.android.com/reference/android/os/IBinder.html)` Stores an `https://developer.android.com/reference/android/os/IBinder.html` value associated with the specified key in the `https://developer.android.com/reference/android/os/IBinder.html`. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putBoolean(kotlin.String,kotlin.Boolean)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` value associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putBooleanArray(kotlin.String,kotlin.BooleanArray)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean-array/index.html)` Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean-array/index.html` associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putChar(kotlin.String,kotlin.Char)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char/index.html)` Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char/index.html` value associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putCharArray(kotlin.String,kotlin.CharArray)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-array/index.html)` Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-array/index.html` associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putCharSequence(kotlin.String,kotlin.CharSequence)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)` Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` value associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putCharSequenceArray(kotlin.String,kotlin.Array)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html>)` Stores an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html` of `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` values associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putCharSequenceList(kotlin.String,kotlin.collections.List)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html>)` Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` values associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putDouble(kotlin.String,kotlin.Double)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html)` Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` value associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putDoubleArray(kotlin.String,kotlin.DoubleArray)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double-array/index.html)` Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double-array/index.html` associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putFloat(kotlin.String,kotlin.Float)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` value associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putFloatArray(kotlin.String,kotlin.FloatArray)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html)` Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html` associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putInt(kotlin.String,kotlin.Int)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Stores an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` value associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putIntArray(kotlin.String,kotlin.IntArray)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html)` Stores an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html` associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putIntList(kotlin.String,kotlin.collections.List)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>)` Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` values associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://developer.android.com/reference/java/io/Serializable.html> https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putJavaSerializable(kotlin.String,java.io.Serializable)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: T)` Stores an `https://developer.android.com/reference/java/io/Serializable.html` value associated with the specified key in the `https://developer.android.com/reference/java/io/Serializable.html`. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putLong(kotlin.String,kotlin.Long)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` value associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putLongArray(kotlin.String,kotlin.LongArray)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html)` Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html` associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putNull(kotlin.String)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Stores a `null` reference associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://developer.android.com/reference/android/os/Parcelable.html> https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putParcelable(kotlin.String,android.os.Parcelable)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: T)` Stores an `https://developer.android.com/reference/android/os/Parcelable.html` value associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://developer.android.com/reference/android/os/Parcelable.html> https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putParcelableArray(kotlin.String,kotlin.Array)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<T>)` Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html` of elements of `https://developer.android.com/reference/android/os/Parcelable.html` associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://developer.android.com/reference/android/os/Parcelable.html> https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putParcelableList(kotlin.String,kotlin.collections.List)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>)` Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of elements of `https://developer.android.com/reference/android/os/Parcelable.html` associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putSavedState(kotlin.String,android.os.Bundle)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://developer.android.com/reference/android/os/Bundle.html)` Stores a `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState` object associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putSavedState(kotlin.String,androidx.savedstate.SavedState)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState)` Stores a `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState` object associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putSavedStateArray(kotlin.String,kotlin.Array)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/android/os/Bundle.html>)` Stores an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html` of `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState` values associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putSavedStateArray(kotlin.String,kotlin.Array)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState>)` Stores an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html` of `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState` values associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putSavedStateList(kotlin.String,kotlin.collections.List)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/os/Bundle.html>)` Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState` values associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putSavedStateList(kotlin.String,kotlin.collections.List)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState>)` Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState` values associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putSize(kotlin.String,android.util.Size)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://developer.android.com/reference/android/util/Size.html)` Stores an `https://developer.android.com/reference/android/util/Size.html` value associated with the specified key in the `https://developer.android.com/reference/android/util/Size.html`. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putSizeF(kotlin.String,android.util.SizeF)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://developer.android.com/reference/android/util/SizeF.html)` Stores an `https://developer.android.com/reference/android/util/SizeF.html` value associated with the specified key in the `https://developer.android.com/reference/android/util/SizeF.html`. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://developer.android.com/reference/android/os/Parcelable.html> https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putSparseParcelableArray(kotlin.String,android.util.SparseArray)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://developer.android.com/reference/android/util/SparseArray.html<T>)` Stores a `https://developer.android.com/reference/android/util/SparseArray.html` of elements of `https://developer.android.com/reference/android/os/Parcelable.html` associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putString(kotlin.String,kotlin.String)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` value associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putStringArray(kotlin.String,kotlin.Array)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>)` Stores an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html` of `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` values associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#putStringList(kotlin.String,kotlin.collections.List)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>)` Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` values associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#remove(kotlin.String)(key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Removes the value associated with the specified key from the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn android |

| ### Extension functions |
|---|---|---|
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter.https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#(androidx.savedstate.SavedStateWriter).putKotlinSerializable(kotlin.String,kotlin.Any,androidx.savedstate.serialization.SavedStateConfiguration)( key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: T, configuration: https://developer.android.com/reference/kotlin/androidx/savedstate/serialization/SavedStateConfiguration )` Stores a `https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-core/kotlinx.serialization/-serializable/index.html` value associated with the specified `https://developer.android.com/reference/kotlin/androidx/savedstate/package-summary#(androidx.savedstate.SavedStateWriter).putKotlinSerializable(kotlin.String,kotlin.Any,androidx.savedstate.serialization.SavedStateConfiguration)` in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter.https://developer.android.com/reference/kotlin/androidx/savedstate/SavedStateWriter#(androidx.savedstate.SavedStateWriter).putKotlinSerializable(kotlinx.serialization.KSerializer,kotlin.String,kotlin.Any,androidx.savedstate.serialization.SavedStateConfiguration)( serializer: https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-core/kotlinx.serialization/-k-serializer/index.html<T>, key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, value: T, configuration: https://developer.android.com/reference/kotlin/androidx/savedstate/serialization/SavedStateConfiguration )` Stores a `https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-core/kotlinx.serialization/-serializable/index.html` value associated with the specified `https://developer.android.com/reference/kotlin/androidx/savedstate/package-summary#(androidx.savedstate.SavedStateWriter).putKotlinSerializable(kotlinx.serialization.KSerializer,kotlin.String,kotlin.Any,androidx.savedstate.serialization.SavedStateConfiguration)` in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`. | Cmn |

## Public functions

### clear

Cmn android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun clear(): Unit
```

Removes all key-value pairs from the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

### putAll

android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putAll(from: Bundle): Unit
```

Stores all key-value pairs from the provided `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState` into this `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `from: https://developer.android.com/reference/android/os/Bundle.html` | The `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState` containing the key-value pairs to add. |

### putAll

Cmn

```
fun putAll(from: SavedState): Unit
```

Stores all key-value pairs from the provided `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState` into this `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `from: https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState` | The `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState` containing the key-value pairs to add. |

### putBinder

android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putBinder(key: String, value: IBinder): Unit
```

Stores an `https://developer.android.com/reference/android/os/IBinder.html` value associated with the specified key in the `https://developer.android.com/reference/android/os/IBinder.html`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://developer.android.com/reference/android/os/IBinder.html` | The `https://developer.android.com/reference/android/os/IBinder.html` value to store. |

### putBoolean

Cmn android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putBoolean(key: String, value: Boolean): Unit
```

Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` value associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` value to store. |

### putBooleanArray

Cmn android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putBooleanArray(key: String, value: BooleanArray): Unit
```

Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean-array/index.html` associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean-array/index.html` | The array of elements to store. |

### putChar

Cmn android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putChar(key: String, value: Char): Unit
```

Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char/index.html` value associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char/index.html` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char/index.html` value to store. |

### putCharArray

Cmn android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putCharArray(key: String, value: CharArray): Unit
```

Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-array/index.html` associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-array/index.html` | The array of elements to store. |

### putCharSequence

Cmn android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putCharSequence(key: String, value: CharSequence): Unit
```

Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` value associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` value to store. |

### putCharSequenceArray

Cmn android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putCharSequenceArray(key: String, value: Array<CharSequence>): Unit
```

Stores an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html` of `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` values associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html>` | The array of elements to store. |

### putCharSequenceList

Cmn android Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.4.0)

```
fun putCharSequenceList(key: String, value: List<CharSequence>): Unit
```

Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html` values associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html>` | The list of elements to store. |

### putDouble

Cmn android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putDouble(key: String, value: Double): Unit
```

Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` value associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html` value to store. |

### putDoubleArray

Cmn android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putDoubleArray(key: String, value: DoubleArray): Unit
```

Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double-array/index.html` associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double-array/index.html` | The array of elements to store. |

### putFloat

Cmn android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putFloat(key: String, value: Float): Unit
```

Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` value associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` value to store. |

### putFloatArray

Cmn android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putFloatArray(key: String, value: FloatArray): Unit
```

Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html` associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html` | The array of elements to store. |

### putInt

Cmn android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putInt(key: String, value: Int): Unit
```

Stores an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` value associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` value to store. |

### putIntArray

Cmn android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putIntArray(key: String, value: IntArray): Unit
```

Stores an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html` associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html` | The array of elements to store. |

### putIntList

Cmn android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putIntList(key: String, value: List<Int>): Unit
```

Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` values associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html>` | The list of elements to store. |

### putJavaSerializable

android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun <T : Serializable> putJavaSerializable(key: String, value: T): Unit
```

Stores an `https://developer.android.com/reference/java/io/Serializable.html` value associated with the specified key in the `https://developer.android.com/reference/java/io/Serializable.html`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: T` | The `https://developer.android.com/reference/java/io/Serializable.html` value to store. |

### putLong

Cmn android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putLong(key: String, value: Long): Unit
```

Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` value associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` value to store. |

### putLongArray

Cmn android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putLongArray(key: String, value: LongArray): Unit
```

Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html` associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html` | The array of elements to store. |

### putNull

Cmn android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putNull(key: String): Unit
```

Stores a `null` reference associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the `null` reference. |

### putParcelable

android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun <T : Parcelable> putParcelable(key: String, value: T): Unit
```

Stores an `https://developer.android.com/reference/android/os/Parcelable.html` value associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: T` | The `https://developer.android.com/reference/android/os/Parcelable.html` value to store. |

### putParcelableArray

android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun <T : Parcelable> putParcelableArray(key: String, value: Array<T>): Unit
```

Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html` of elements of `https://developer.android.com/reference/android/os/Parcelable.html` associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<T>` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html` of elements to store. |

### putParcelableList

android Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.4.0)

```
fun <T : Parcelable> putParcelableList(key: String, value: List<T>): Unit
```

Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of elements of `https://developer.android.com/reference/android/os/Parcelable.html` associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<T>` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of elements to store. |

### putSavedState

android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putSavedState(key: String, value: Bundle): Unit
```

Stores a `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState` object associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://developer.android.com/reference/android/os/Bundle.html` | The `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState` object to store. |

### putSavedState

Cmn

```
fun putSavedState(key: String, value: SavedState): Unit
```

Stores a `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState` object associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState` | The `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState` object to store. |

### putSavedStateArray

android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putSavedStateArray(key: String, value: Array<Bundle>): Unit
```

Stores an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html` of `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState` values associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/android/os/Bundle.html>` | The array of elements to store. |

### putSavedStateArray

Cmn

```
fun putSavedStateArray(key: String, value: Array<SavedState>): Unit
```

Stores an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html` of `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState` values associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState>` | The array of elements to store. |

### putSavedStateList

android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putSavedStateList(key: String, value: List<Bundle>): Unit
```

Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState` values associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/android/os/Bundle.html>` | The list of elements to store. |

### putSavedStateList

Cmn

```
fun putSavedStateList(key: String, value: List<SavedState>): Unit
```

Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState` values associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState>` | The list of elements to store. |

### putSize

android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putSize(key: String, value: Size): Unit
```

Stores an `https://developer.android.com/reference/android/util/Size.html` value associated with the specified key in the `https://developer.android.com/reference/android/util/Size.html`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://developer.android.com/reference/android/util/Size.html` | The `https://developer.android.com/reference/android/util/Size.html` value to store. |

### putSizeF

android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putSizeF(key: String, value: SizeF): Unit
```

Stores an `https://developer.android.com/reference/android/util/SizeF.html` value associated with the specified key in the `https://developer.android.com/reference/android/util/SizeF.html`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://developer.android.com/reference/android/util/SizeF.html` | The `https://developer.android.com/reference/android/util/SizeF.html` value to store. |

### putSparseParcelableArray

android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun <T : Parcelable> putSparseParcelableArray(key: String, value: SparseArray<T>): Unit
```

Stores a `https://developer.android.com/reference/android/util/SparseArray.html` of elements of `https://developer.android.com/reference/android/os/Parcelable.html` associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://developer.android.com/reference/android/util/SparseArray.html<T>` | The `https://developer.android.com/reference/android/util/SparseArray.html` of elements to store. |

### putString

Cmn android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putString(key: String, value: String): Unit
```

Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` value associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` value to store. |

### putStringArray

Cmn android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putStringArray(key: String, value: Array<String>): Unit
```

Stores an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html` of `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` values associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>` | The array of elements to store. |

### putStringList

Cmn android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun putStringList(key: String, value: List<String>): Unit
```

Stores a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html` of `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` values associated with the specified key in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>` | The list of elements to store. |

### remove

Cmn android Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/savedstate#1.3.0)

```
fun remove(key: String): Unit
```

Removes the value associated with the specified key from the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to remove. |

## Extension functions

### SavedStateWriter.putKotlinSerializable

Cmn Artifact: [androidx.savedstate:savedstate](https://developer.android.com/jetpack/androidx/releases/savedstate) [View Source](https://cs.android.com/search?q=file:androidx/savedstate/SavedState.kt+function:putKotlinSerializable)

```
inline fun <T : Any?> SavedStateWriter.putKotlinSerializable(
    key: String,
    value: T,
    configuration: SavedStateConfiguration = SavedStateConfiguration.DEFAULT
): Unit
```

Stores a `https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-core/kotlinx.serialization/-serializable/index.html` value associated with the specified `https://developer.android.com/reference/kotlin/androidx/savedstate/package-summary#(androidx.savedstate.SavedStateWriter).putKotlinSerializable(kotlin.String,kotlin.Any,androidx.savedstate.serialization.SavedStateConfiguration)` in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: T` | The `https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-core/kotlinx.serialization/-serializable/index.html` value to store. |
| `configuration: https://developer.android.com/reference/kotlin/androidx/savedstate/serialization/SavedStateConfiguration = SavedStateConfiguration.DEFAULT` | The `https://developer.android.com/reference/kotlin/androidx/savedstate/serialization/SavedStateConfiguration` to use for the encoding process. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/savedstate/serialization/package-summary#encodeToSavedState(kotlin.Any,androidx.savedstate.serialization.SavedStateConfiguration)` |   |

### SavedStateWriter.putKotlinSerializable

Cmn Artifact: [androidx.savedstate:savedstate](https://developer.android.com/jetpack/androidx/releases/savedstate) [View Source](https://cs.android.com/search?q=file:androidx/savedstate/SavedState.kt+function:putKotlinSerializable)

```
fun <T : Any?> SavedStateWriter.putKotlinSerializable(
    serializer: KSerializer<T>,
    key: String,
    value: T,
    configuration: SavedStateConfiguration = SavedStateConfiguration.DEFAULT
): Unit
```

Stores a `https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-core/kotlinx.serialization/-serializable/index.html` value associated with the specified `https://developer.android.com/reference/kotlin/androidx/savedstate/package-summary#(androidx.savedstate.SavedStateWriter).putKotlinSerializable(kotlinx.serialization.KSerializer,kotlin.String,kotlin.Any,androidx.savedstate.serialization.SavedStateConfiguration)` in the `https://developer.android.com/reference/kotlin/androidx/savedstate/SavedState`.

| Parameters |
|---|---|
| `serializer: https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-core/kotlinx.serialization/-k-serializer/index.html<T>` | The `https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-core/kotlinx.serialization/-k-serializer/index.html` used to encode the value. |
| `key: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The key to associate the value with. |
| `value: T` | The `https://kotlinlang.org/api/kotlinx.serialization/kotlinx-serialization-core/kotlinx.serialization/-serializable/index.html` value to store. |
| `configuration: https://developer.android.com/reference/kotlin/androidx/savedstate/serialization/SavedStateConfiguration = SavedStateConfiguration.DEFAULT` | The `https://developer.android.com/reference/kotlin/androidx/savedstate/serialization/SavedStateConfiguration` to use for the encoding process. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/savedstate/serialization/package-summary#encodeToSavedState(kotlin.Any,androidx.savedstate.serialization.SavedStateConfiguration)` |   |