# MutableDynamicDataMap

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

*** ** * ** ***


```
public final class MutableDynamicDataMap extends DynamicDataMap
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.wear.protolayout.expression.DynamicDataMap](https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap) ||
|   | ↳ | [androidx.wear.protolayout.expression.MutableDynamicDataMap](https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap) |

*** ** * ** ***

A mutable heterogeneous map of `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicType` keys to their corresponding values. This (and `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap`) act like `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-map/index.html` (and `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html`), but with type safety for key and value pairs.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#MutableDynamicDataMap(kotlin.Array)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataPair<@https://developer.android.com/reference/androidx/annotation/NonNull ?>... pairs)` |

| ### Public methods |
|---|---|
| `final void` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#putAll(androidx.wear.protolayout.expression.DynamicDataMap)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap other)` Adds all key/values from `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#putAll(androidx.wear.protolayout.expression.DynamicDataMap)` to this map. |
| `final void` | `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.Boolean)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicBool> key, boolean value )` Associates a boolean `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.Boolean)` with a `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.Boolean)` in this map. |
| `final void` | `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,android.graphics.Color)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicColor> key, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Color.html value )` Associates a color `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,android.graphics.Color)` with a `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,android.graphics.Color)` in this map. |
| `final void` | `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 300) https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,java.time.Duration)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicDuration> key, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Duration.html value )` Associates a `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,java.time.Duration)` with a `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,java.time.Duration)` in this map. |
| `final void` | `<T extends https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicType> https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,androidx.wear.protolayout.expression.DynamicDataBuilders.DynamicDataValue)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull T> key, @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 T> value )` Associates `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,androidx.wear.protolayout.expression.DynamicDataBuilders.DynamicDataValue)` with `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,androidx.wear.protolayout.expression.DynamicDataBuilders.DynamicDataValue)` in this map. |
| `final void` | `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.Float)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicFloat> key, float value )` Associates a float `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.Float)` with a `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.Float)` in this map. |
| `final void` | `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 300) https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,java.time.Instant)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicInstant> key, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Instant.html value )` Associates a `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,java.time.Instant)` with a `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,java.time.Instant)` in this map. |
| `final void` | `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.Int)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicInt32> key, int value )` Associates a integer `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.Int)` with a `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.Int)` in this map. |
| `final void` | `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.String)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicString> key, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html value )` Associates a string `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.String)` with a `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.String)` in this map. |

| ### Inherited methods |
|---|
| From [androidx.wear.protolayout.expression.DynamicDataMap](https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap) |---|---| | `final boolean` | `<T extends https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicType> https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#contains(androidx.wear.protolayout.expression.DynamicDataKey)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull T> key )` Returns true if this map contains the specified `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#contains(androidx.wear.protolayout.expression.DynamicDataKey)` and it is associated with the specified type `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#contains(androidx.wear.protolayout.expression.DynamicDataKey)`. | | `final boolean` | `<T extends https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicType> https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#contains(androidx.wear.protolayout.expression.DynamicDataKey,java.lang.Class)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull T> key, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Class.html<@https://developer.android.com/reference/androidx/annotation/NonNull T> type )` Returns true if this map contains the specified `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#contains(androidx.wear.protolayout.expression.DynamicDataKey,java.lang.Class)` and it is associated with the specified `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#contains(androidx.wear.protolayout.expression.DynamicDataKey,java.lang.Class)`. | | `boolean` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` | | `final https://developer.android.com/reference/java/lang/Boolean.html` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#get(androidx.wear.protolayout.expression.DynamicDataKey)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicBool> key)` Gets the boolean value mapped to `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#get(androidx.wear.protolayout.expression.DynamicDataKey)`. | | `final https://developer.android.com/reference/android/graphics/Color.html` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#get(androidx.wear.protolayout.expression.DynamicDataKey)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicColor> key)` Gets the color value mapped to `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#get(androidx.wear.protolayout.expression.DynamicDataKey)`. | | `final https://developer.android.com/reference/java/time/Duration.html` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#get(androidx.wear.protolayout.expression.DynamicDataKey)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicDuration> key)` Gets the `https://developer.android.com/reference/java/time/Duration.html` value mapped to `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#get(androidx.wear.protolayout.expression.DynamicDataKey)`. | | `final https://developer.android.com/reference/java/lang/Float.html` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#get(androidx.wear.protolayout.expression.DynamicDataKey)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicFloat> key)` Gets the float value mapped to `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#get(androidx.wear.protolayout.expression.DynamicDataKey)`. | | `final https://developer.android.com/reference/java/time/Instant.html` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#get(androidx.wear.protolayout.expression.DynamicDataKey)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicInstant> key)` Gets the `https://developer.android.com/reference/java/time/Instant.html` value mapped to `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#get(androidx.wear.protolayout.expression.DynamicDataKey)`. | | `final https://developer.android.com/reference/java/lang/Integer.html` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#get(androidx.wear.protolayout.expression.DynamicDataKey)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicInt32> key)` Gets the integer value mapped to `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#get(androidx.wear.protolayout.expression.DynamicDataKey)`. | | `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#get(androidx.wear.protolayout.expression.DynamicDataKey)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicString> key)` Gets the string value mapped to `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#get(androidx.wear.protolayout.expression.DynamicDataKey)`. | | `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.Entry.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicType>, @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/DynamicBuilders.DynamicType>>>` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#getEntries()()` Returns a read-only `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html` of all key/value pairs in this map. | | `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Set.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicType>>` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#getKeys()()` Returns a read-only `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html` of all keys in this map. | | `final int` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#getSize()()` Returns the number of key/value pairs in the map. | | `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Collection.html<@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/DynamicBuilders.DynamicType>>` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#getValues()()` Returns a read-only `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-collection/index.html` of all values in this map. | | `int` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#hashCode()()` | | `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap` | `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap#plus(androidx.wear.protolayout.expression.DynamicDataMap)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataMap rhs)` | | `@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/DynamicDataMap#toString()()` | |

## Public constructors

### MutableDynamicDataMap

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

```
public MutableDynamicDataMap(@NonNull DynamicDataPair<@NonNull ?>... pairs)
```

## Public methods

### putAll

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

```
public final void putAll(@NonNull DynamicDataMap other)
```

Adds all key/values from `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#putAll(androidx.wear.protolayout.expression.DynamicDataMap)` to this map. Potentially overwriting any common key.

### set

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
public final void set(
    @NonNull DynamicDataKey<@NonNull DynamicBuilders.DynamicBool> key,
    boolean value
)
```

Associates a boolean `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.Boolean)` with a `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.Boolean)` in this map.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicBool> key` | represent a key that other APIs can use to reference `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.Boolean)`s value. |
| `boolean value` | is the static value to use for resolving references to `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.Boolean)`. |

### set

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
public final void set(
    @NonNull DynamicDataKey<@NonNull DynamicBuilders.DynamicColor> key,
    @NonNull Color value
)
```

Associates a color `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,android.graphics.Color)` with a `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,android.graphics.Color)` in this map.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicColor> key` | represent a key that other APIs can use to reference `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,android.graphics.Color)`s value. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Color.html value` | is the static value to use for resolving references to `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,android.graphics.Color)`. |

### set

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

```
@RequiresSchemaVersion(major = 1, minor = 300)
public final void set(
    @NonNull DynamicDataKey<@NonNull DynamicBuilders.DynamicDuration> key,
    @NonNull Duration value
)
```

Associates a `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,java.time.Duration)` with a `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,java.time.Duration)` in this map.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicDuration> key` | represent a key that other APIs can use to reference `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,java.time.Duration)`s value. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Duration.html value` | is the static value to use for resolving references to `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,java.time.Duration)`. |

### set

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

```
public final void <T extends DynamicBuilders.DynamicType> set(
    @NonNull DynamicDataKey<@NonNull T> key,
    @NonNull DynamicDataBuilders.DynamicDataValue<@NonNull T> value
)
```

Associates `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,androidx.wear.protolayout.expression.DynamicDataBuilders.DynamicDataValue)` with `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,androidx.wear.protolayout.expression.DynamicDataBuilders.DynamicDataValue)` in this map.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull T> key` | represent a key that other APIs can use to reference `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,androidx.wear.protolayout.expression.DynamicDataBuilders.DynamicDataValue)`s value. |
| `@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 T> value` | is the static value to use for resolving references to `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,androidx.wear.protolayout.expression.DynamicDataBuilders.DynamicDataValue)`. |

### set

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
public final void set(
    @NonNull DynamicDataKey<@NonNull DynamicBuilders.DynamicFloat> key,
    float value
)
```

Associates a float `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.Float)` with a `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.Float)` in this map.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicFloat> key` | represent a key that other APIs can use to reference `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.Float)`s value. |
| `float value` | is the static value to use for resolving references to `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.Float)`. |

### set

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

```
@RequiresSchemaVersion(major = 1, minor = 300)
public final void set(
    @NonNull DynamicDataKey<@NonNull DynamicBuilders.DynamicInstant> key,
    @NonNull Instant value
)
```

Associates a `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,java.time.Instant)` with a `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,java.time.Instant)` in this map.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicInstant> key` | represent a key that other APIs can use to reference `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,java.time.Instant)`s value. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Instant.html value` | is the static value to use for resolving references to `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,java.time.Instant)`. |

### set

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
public final void set(
    @NonNull DynamicDataKey<@NonNull DynamicBuilders.DynamicInt32> key,
    int value
)
```

Associates a integer `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.Int)` with a `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.Int)` in this map.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicInt32> key` | represent a key that other APIs can use to reference `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.Int)`s value. |
| `int value` | is the static value to use for resolving references to `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.Int)`. |

### set

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
public final void set(
    @NonNull DynamicDataKey<@NonNull DynamicBuilders.DynamicString> key,
    @NonNull String value
)
```

Associates a string `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.String)` with a `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.String)` in this map.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataKey<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicString> key` | represent a key that other APIs can use to reference `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.String)`s value. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html value` | is the static value to use for resolving references to `https://developer.android.com/reference/androidx/wear/protolayout/expression/MutableDynamicDataMap#set(androidx.wear.protolayout.expression.DynamicDataKey,kotlin.String)`. |