# AppDataKeyUtil

Added in 1.3.0

*** ** * ** ***


```
public final class AppDataKeyUtil
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicBool>` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKeyUtil#boolAppDataKey(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key)` Create a `https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey` with the specified key that references a boolean dynamic data. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicColor>` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKeyUtil#colorAppDataKey(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key)` Create a `https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey` with the specified key that references a color dynamic data. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicDuration>` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKeyUtil#durationAppDataKey(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key)` Create a `https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey` with the specified key that references a `https://developer.android.com/reference/java/time/Duration.html` dynamic data. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicFloat>` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKeyUtil#floatAppDataKey(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key)` Create a `https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey` with the specified key that references a float dynamic data. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicInstant>` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKeyUtil#instantAppDataKey(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key)` Create a `https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey` with the specified key that references an `https://developer.android.com/reference/java/time/Instant.html` dynamic data. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicInt32>` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKeyUtil#intAppDataKey(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key)` Create a `https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey` with the specified key that references an int dynamic data. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicString>` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKeyUtil#stringAppDataKey(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html key)` Create a `https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey` with the specified key that references a string dynamic data. |

## Public methods

### boolAppDataKey

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+function:boolAppDataKey) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull AppDataKey<@NonNull DynamicBuilders.DynamicBool> boolAppDataKey(@NonNull String key)
```

Create a `https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey` with the specified key that references a boolean dynamic data.

| Parameters |
|---|---|
| `@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. |

### colorAppDataKey

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+function:colorAppDataKey) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull AppDataKey<@NonNull DynamicBuilders.DynamicColor> colorAppDataKey(@NonNull String key)
```

Create a `https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey` with the specified key that references a color dynamic data.

| Parameters |
|---|---|
| `@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. |

### durationAppDataKey

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+function:durationAppDataKey) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull AppDataKey<@NonNull DynamicBuilders.DynamicDuration> durationAppDataKey(@NonNull String key)
```

Create a `https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey` with the specified key that references a `https://developer.android.com/reference/java/time/Duration.html` dynamic data.

| Parameters |
|---|---|
| `@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. |

### floatAppDataKey

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+function:floatAppDataKey) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull AppDataKey<@NonNull DynamicBuilders.DynamicFloat> floatAppDataKey(@NonNull String key)
```

Create a `https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey` with the specified key that references a float dynamic data.

| Parameters |
|---|---|
| `@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. |

### instantAppDataKey

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+function:instantAppDataKey) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull AppDataKey<@NonNull DynamicBuilders.DynamicInstant> instantAppDataKey(@NonNull String key)
```

Create a `https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey` with the specified key that references an `https://developer.android.com/reference/java/time/Instant.html` dynamic data.

| Parameters |
|---|---|
| `@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. |

### intAppDataKey

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+function:intAppDataKey) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull AppDataKey<@NonNull DynamicBuilders.DynamicInt32> intAppDataKey(@NonNull String key)
```

Create a `https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey` with the specified key that references an int dynamic data.

| Parameters |
|---|---|
| `@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. |

### stringAppDataKey

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+function:stringAppDataKey) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull AppDataKey<@NonNull DynamicBuilders.DynamicString> stringAppDataKey(@NonNull String key)
```

Create a `https://developer.android.com/reference/androidx/wear/protolayout/expression/AppDataKey` with the specified key that references a string dynamic data.

| Parameters |
|---|---|
| `@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. |