---
title: "SaveableStateRegistry"
description: "Creates [SaveableStateRegistry]."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
public fun SaveableStateRegistry(
    restoredValues: Map<String, List<Any?>>?,
    canBeSaved: (Any) -> Boolean,
): SaveableStateRegistry
```


Creates `SaveableStateRegistry`.

#### Parameters

| | |
| --- | --- |
| restoredValues | The map of the restored values |
| canBeSaved | Function which returns true if the given value can be saved by the registry |




