# retainRetainedValuesStoreRegistry

Common/All

## Functions summary

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/retain/RetainedValuesStoreRegistry` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/runtime/retain/retainRetainedValuesStoreRegistry.composable#retainRetainedValuesStoreRegistry()()` Returns a `https://developer.android.com/reference/kotlin/androidx/compose/runtime/retain/retain.composable#retain(kotlin.Function0)`ed instance of a new `https://developer.android.com/reference/kotlin/androidx/compose/runtime/retain/RetainedValuesStoreRegistry`. | Cmn |

## Functions

### retainRetainedValuesStoreRegistry

Cmn Artifact: [androidx.compose.runtime:runtime-retain](https://developer.android.com/jetpack/androidx/releases/compose-runtime) [View Source](https://cs.android.com/search?q=file:androidx/compose/runtime/retain/RetainedValuesStoreRegistry.kt+function:retainRetainedValuesStoreRegistry) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.10.0)

```
@Composable
fun retainRetainedValuesStoreRegistry(): RetainedValuesStoreRegistry
```

Returns a `https://developer.android.com/reference/kotlin/androidx/compose/runtime/retain/retain.composable#retain(kotlin.Function0)`ed instance of a new `https://developer.android.com/reference/kotlin/androidx/compose/runtime/retain/RetainedValuesStoreRegistry`. A RetainedValuesStoreRegistry is a container of `https://developer.android.com/reference/kotlin/androidx/compose/runtime/retain/RetainedValuesStore`s that allows a parent composable to have children with different retention lifecycles. See `https://developer.android.com/reference/kotlin/androidx/compose/runtime/retain/RetainedValuesStoreRegistry` for more information on how to use this class, including a sample.

When this `https://developer.android.com/reference/kotlin/androidx/compose/runtime/retain/RetainedValuesStoreRegistry` is retired, its child stores will also be retired and the store will be `https://developer.android.com/reference/kotlin/androidx/compose/runtime/retain/RetainedValuesStoreRegistry#dispose()`.