# AppDataKey

Artifact: [androidx.wear.protolayout:protolayout-expression](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/expression/AppDataKey.kt+class:androidx.wear.protolayout.expression.AppDataKey) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

*** ** * ** ***


```
public final class AppDataKey<T extends DynamicBuilders.DynamicType> extends DynamicDataKey<@NonNull T>
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.wear.protolayout.expression.DynamicDataKey](https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey)\<@[NonNull](https://developer.android.com/reference/androidx/annotation/NonNull) T\> ||
|   | ↳ | [androidx.wear.protolayout.expression.AppDataKey](https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey) |

*** ** * ** ***

Represent a `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey` that references app/tile pushed state data.

| Parameters |
|---|---|
| `<T extends https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicType>` | The data type of the dynamic values that this key is bound to. |

## Summary

| ### Public constructors |
|---|
| `<T extends https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicType> https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey#AppDataKey(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key)` |

### Inherited methods

From [androidx.wear.protolayout.expression.DynamicDataKey](https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey) `boolean` `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey#getKey()()` `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey#getNamespace()()` `int` `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey#hashCode()()` `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey#toString()()`

## Public constructors

### AppDataKey

```
public <T extends DynamicBuilders.DynamicType> AppDataKey(@NonNull String key)
```

| Parameters |
|---|---|
| `<T extends https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicType>` | The data type of the dynamic values that this key is bound to. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key` | The key in the state to bind to. |