abstract class DynamicDataKey<T : DynamicBuilders.DynamicType>

Known direct subclasses
AppDataKey

Represent a DynamicDataKey that references app/tile pushed state data.

PlatformDataKey

Represent a DynamicDataKey that references real-time data from the platform.


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

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

String
String

Extension functions

infix DynamicDataPair<DynamicBuilders.DynamicBool>

Creates a tuple of type DynamicDataPair from this and value.

infix DynamicDataPair<DynamicBuilders.DynamicColor>

Creates a tuple of type DynamicDataPair from this and value.

infix DynamicDataPair<DynamicBuilders.DynamicDuration>

Creates a tuple of type DynamicDataPair from this and value.

infix DynamicDataPair<DynamicBuilders.DynamicFloat>

Creates a tuple of type DynamicDataPair from this and value.

infix DynamicDataPair<DynamicBuilders.DynamicInstant>

Creates a tuple of type DynamicDataPair from this and value.

infix DynamicDataPair<DynamicBuilders.DynamicInt32>

Creates a tuple of type DynamicDataPair from this and value.

infix DynamicDataPair<DynamicBuilders.DynamicString>

Creates a tuple of type DynamicDataPair from this and value.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

key

Added in 1.0.0
val keyString

namespace

Added in 1.0.0
val namespaceString

Extension functions

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

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

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

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

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

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

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