---
title: "toParametersKey"
description: "Creates an action key from a preferences key."
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-android'>Android</div>


```kotlin
public fun <T : Any> Preferences.Key<T>.toParametersKey(): ActionParameters.Key<T>
```


Creates an action key from a preferences key.



