DynamicDataKey
abstract class DynamicDataKey<T : DynamicBuilders.DynamicType>
AppDataKey |
Represent a |
PlatformDataKey |
Represent a |
Represent a key that references a dynamic value source, such as state pushed by app/tile or real-time data from the platform.
| Parameters | |
|---|---|
<T : DynamicBuilders.DynamicType> |
The data type of the dynamic values that this key is bound to. |
Summary
Public functions
Extension functions
mapTo
@RequiresSchemaVersion(major = 1, minor = 200)
infix fun DynamicDataKey<DynamicBuilders.DynamicBool>.mapTo(value: Boolean): DynamicDataPair<DynamicBuilders.DynamicBool>
Creates a tuple of type DynamicDataPair from this and value.
mapTo
@RequiresSchemaVersion(major = 1, minor = 200)
infix fun DynamicDataKey<DynamicBuilders.DynamicColor>.mapTo(value: Color): DynamicDataPair<DynamicBuilders.DynamicColor>
Creates a tuple of type DynamicDataPair from this and value.
mapTo
@RequiresSchemaVersion(major = 1, minor = 300)
infix fun DynamicDataKey<DynamicBuilders.DynamicDuration>.mapTo(value: Duration): DynamicDataPair<DynamicBuilders.DynamicDuration>
Creates a tuple of type DynamicDataPair from this and value.
mapTo
@RequiresSchemaVersion(major = 1, minor = 200)
infix fun DynamicDataKey<DynamicBuilders.DynamicFloat>.mapTo(value: Float): DynamicDataPair<DynamicBuilders.DynamicFloat>
Creates a tuple of type DynamicDataPair from this and value.
mapTo
@RequiresSchemaVersion(major = 1, minor = 300)
infix fun DynamicDataKey<DynamicBuilders.DynamicInstant>.mapTo(value: Instant): DynamicDataPair<DynamicBuilders.DynamicInstant>
Creates a tuple of type DynamicDataPair from this and value.
mapTo
@RequiresSchemaVersion(major = 1, minor = 200)
infix fun DynamicDataKey<DynamicBuilders.DynamicInt32>.mapTo(value: Int): DynamicDataPair<DynamicBuilders.DynamicInt32>
Creates a tuple of type DynamicDataPair from this and value.
mapTo
@RequiresSchemaVersion(major = 1, minor = 200)
infix fun DynamicDataKey<DynamicBuilders.DynamicString>.mapTo(value: String): DynamicDataPair<DynamicBuilders.DynamicString>
Creates a tuple of type DynamicDataPair from this and value.