# PlatformDataValues

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/PlatformDataValues.java+class:androidx.wear.protolayout.expression.PlatformDataValues) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

*** ** * ** ***

<br />

```
public final class PlatformDataValues
```

<br />

*** ** * ** ***

Typed mapping of `https://developer.android.com/reference/androidx/wear/protolayout/expression/PlatformDataKey` to `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataBuilders.DynamicDataValue`.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/wear/protolayout/expression/PlatformDataValues.Builder` Builder for `https://developer.android.com/reference/androidx/wear/protolayout/expression/PlatformDataValues`. |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/Map.html<https://developer.android.com/reference/androidx/wear/protolayout/expression/PlatformDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull ?>, https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataBuilders.DynamicDataValue<@https://developer.android.com/reference/androidx/annotation/NonNull ?>>` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/PlatformDataValues#getAll()()` Returns the key-value mapping. |
| `static @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/expression/PlatformDataValues` | `<T extends https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicType> https://developer.android.com/reference/androidx/wear/protolayout/expression/PlatformDataValues#of(androidx.wear.protolayout.expression.PlatformDataKey<T>,androidx.wear.protolayout.expression.DynamicDataBuilders.DynamicDataValue<T>)( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/expression/PlatformDataKey<T> key, @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataBuilders.DynamicDataValue<T> value )` Creates a `https://developer.android.com/reference/androidx/wear/protolayout/expression/PlatformDataValues` from a single key/value pair. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/PlatformDataValues#toString()()` |

## Public methods

### getAll

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
public @NonNull Map<PlatformDataKey<@NonNull ?>, DynamicDataBuilders.DynamicDataValue<@NonNull ?>> getAll()
```

Returns the key-value mapping.

### of

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
public static @NonNull PlatformDataValues <T extends DynamicBuilders.DynamicType> of(
    @NonNull PlatformDataKey<T> key,
    @NonNull DynamicDataBuilders.DynamicDataValue<T> value
)
```

Creates a `https://developer.android.com/reference/androidx/wear/protolayout/expression/PlatformDataValues` from a single key/value pair.

### toString

```
public @NonNull String toString()
```