# DynamicDataPairUtil

Added in 1.3.0

*** ** * ** ***


```
public final class DynamicDataPairUtil
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final @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 https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicBool>` | `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataPairUtil#(androidx.wear.protolayout.expression.DynamicDataKey).dynamicDataPairOf(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> receiver, boolean value )` Creates a tuple of type `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataPair` from this and `https://developer.android.com/reference/androidx/wear/protolayout/expression/package-summary#(androidx.wear.protolayout.expression.DynamicDataKey).mapTo(kotlin.Boolean)`. |
| `static final @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 https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicColor>` | `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataPairUtil#(androidx.wear.protolayout.expression.DynamicDataKey).dynamicDataPairOf(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> receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Color.html value )` Creates a tuple of type `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataPair` from this and `https://developer.android.com/reference/androidx/wear/protolayout/expression/package-summary#(androidx.wear.protolayout.expression.DynamicDataKey).mapTo(android.graphics.Color)`. |
| `static final @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 https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicDuration>` | `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 300) https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataPairUtil#(androidx.wear.protolayout.expression.DynamicDataKey).dynamicDataPairOf(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> receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Duration.html value )` Creates a tuple of type `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataPair` from this and `https://developer.android.com/reference/androidx/wear/protolayout/expression/package-summary#(androidx.wear.protolayout.expression.DynamicDataKey).mapTo(java.time.Duration)`. |
| `static final @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 https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicFloat>` | `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataPairUtil#(androidx.wear.protolayout.expression.DynamicDataKey).dynamicDataPairOf(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> receiver, float value )` Creates a tuple of type `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataPair` from this and `https://developer.android.com/reference/androidx/wear/protolayout/expression/package-summary#(androidx.wear.protolayout.expression.DynamicDataKey).mapTo(kotlin.Float)`. |
| `static final @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 https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicInstant>` | `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 300) https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataPairUtil#(androidx.wear.protolayout.expression.DynamicDataKey).dynamicDataPairOf(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> receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Instant.html value )` Creates a tuple of type `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataPair` from this and `https://developer.android.com/reference/androidx/wear/protolayout/expression/package-summary#(androidx.wear.protolayout.expression.DynamicDataKey).mapTo(java.time.Instant)`. |
| `static final @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 https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicInt32>` | `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataPairUtil#(androidx.wear.protolayout.expression.DynamicDataKey).dynamicDataPairOf(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> receiver, int value )` Creates a tuple of type `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataPair` from this and `https://developer.android.com/reference/androidx/wear/protolayout/expression/package-summary#(androidx.wear.protolayout.expression.DynamicDataKey).mapTo(kotlin.Int)`. |
| `static final @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 https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicBuilders.DynamicString>` | `@https://developer.android.com/reference/androidx/wear/protolayout/expression/RequiresSchemaVersion(major = 1, minor = 200) https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataPairUtil#(androidx.wear.protolayout.expression.DynamicDataKey).dynamicDataPairOf(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> receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html value )` Creates a tuple of type `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataPair` from this and `https://developer.android.com/reference/androidx/wear/protolayout/expression/package-summary#(androidx.wear.protolayout.expression.DynamicDataKey).mapTo(kotlin.String)`. |

## Public methods

### dynamicDataPairOf

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
public static final @NonNull DynamicDataPair<@NonNull DynamicBuilders.DynamicBool> dynamicDataPairOf(
    @NonNull DynamicDataKey<@NonNull DynamicBuilders.DynamicBool> receiver,
    boolean value
)
```

Creates a tuple of type `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataPair` from this and `https://developer.android.com/reference/androidx/wear/protolayout/expression/package-summary#(androidx.wear.protolayout.expression.DynamicDataKey).mapTo(kotlin.Boolean)`.

### dynamicDataPairOf

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
public static final @NonNull DynamicDataPair<@NonNull DynamicBuilders.DynamicColor> dynamicDataPairOf(
    @NonNull DynamicDataKey<@NonNull DynamicBuilders.DynamicColor> receiver,
    @NonNull Color value
)
```

Creates a tuple of type `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataPair` from this and `https://developer.android.com/reference/androidx/wear/protolayout/expression/package-summary#(androidx.wear.protolayout.expression.DynamicDataKey).mapTo(android.graphics.Color)`.

### dynamicDataPairOf

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

```
@RequiresSchemaVersion(major = 1, minor = 300)
public static final @NonNull DynamicDataPair<@NonNull DynamicBuilders.DynamicDuration> dynamicDataPairOf(
    @NonNull DynamicDataKey<@NonNull DynamicBuilders.DynamicDuration> receiver,
    @NonNull Duration value
)
```

Creates a tuple of type `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataPair` from this and `https://developer.android.com/reference/androidx/wear/protolayout/expression/package-summary#(androidx.wear.protolayout.expression.DynamicDataKey).mapTo(java.time.Duration)`.

### dynamicDataPairOf

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
public static final @NonNull DynamicDataPair<@NonNull DynamicBuilders.DynamicFloat> dynamicDataPairOf(
    @NonNull DynamicDataKey<@NonNull DynamicBuilders.DynamicFloat> receiver,
    float value
)
```

Creates a tuple of type `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataPair` from this and `https://developer.android.com/reference/androidx/wear/protolayout/expression/package-summary#(androidx.wear.protolayout.expression.DynamicDataKey).mapTo(kotlin.Float)`.

### dynamicDataPairOf

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

```
@RequiresSchemaVersion(major = 1, minor = 300)
public static final @NonNull DynamicDataPair<@NonNull DynamicBuilders.DynamicInstant> dynamicDataPairOf(
    @NonNull DynamicDataKey<@NonNull DynamicBuilders.DynamicInstant> receiver,
    @NonNull Instant value
)
```

Creates a tuple of type `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataPair` from this and `https://developer.android.com/reference/androidx/wear/protolayout/expression/package-summary#(androidx.wear.protolayout.expression.DynamicDataKey).mapTo(java.time.Instant)`.

### dynamicDataPairOf

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
public static final @NonNull DynamicDataPair<@NonNull DynamicBuilders.DynamicInt32> dynamicDataPairOf(
    @NonNull DynamicDataKey<@NonNull DynamicBuilders.DynamicInt32> receiver,
    int value
)
```

Creates a tuple of type `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataPair` from this and `https://developer.android.com/reference/androidx/wear/protolayout/expression/package-summary#(androidx.wear.protolayout.expression.DynamicDataKey).mapTo(kotlin.Int)`.

### dynamicDataPairOf

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

```
@RequiresSchemaVersion(major = 1, minor = 200)
public static final @NonNull DynamicDataPair<@NonNull DynamicBuilders.DynamicString> dynamicDataPairOf(
    @NonNull DynamicDataKey<@NonNull DynamicBuilders.DynamicString> receiver,
    @NonNull String value
)
```

Creates a tuple of type `https://developer.android.com/reference/androidx/wear/protolayout/expression/DynamicDataPair` from this and `https://developer.android.com/reference/androidx/wear/protolayout/expression/package-summary#(androidx.wear.protolayout.expression.DynamicDataKey).mapTo(kotlin.String)`.