<div class='sourceset sourceset-android'>Android</div>

```kotlin
public class Key<T : Any>(public val name: String)
```

Key for [ActionParameters](/jetpack-compose/androidx.glance/glance/classes/ActionParameters) values. Type T is the type of the associated value. T must be a
primitive or Parcelable type. The [Key.name](/jetpack-compose/androidx.compose.runtime/runtime/composable-functions/key) must be unique, keys with the same name are
considered equal.

## Functions

<h2 id="to-value">to</h2>

```kotlin
public infix fun to(value: T): Pair<T>
```

Infix function to create a Parameters.Pair.

#### Parameters

| | |
| --- | --- |
| value | the value this key should point to |