androidx.wear.protolayout.expression
Interfaces
AnimationParameterBuilders.Easing |
Interface defining the easing to be used for adjusting an animation's fraction. |
DynamicBuilders.DynamicBool |
Interface defining a dynamic boolean type. |
DynamicBuilders.DynamicColor |
Interface defining a dynamic color type. |
DynamicBuilders.DynamicDuration |
Interface defining a dynamic duration type. |
DynamicBuilders.DynamicFloat |
Interface defining a dynamic float type. |
DynamicBuilders.DynamicInstant |
Interface defining a dynamic time instant type. |
DynamicBuilders.DynamicInt32 |
Interface defining a dynamic int32 type. |
DynamicBuilders.DynamicString |
Interface defining a dynamic string type. |
DynamicBuilders.DynamicType |
Interface to be used as a base type for all other dynamic types. |
DynamicDataBuilders.DynamicDataValue |
Interface defining a dynamic data value. |
Classes
AnimationParameterBuilders |
Builders for parameters that can be used to customize an animation. |
AnimationParameterBuilders.AnimationParameters |
Animation specs of duration, easing and repeat delay. |
AnimationParameterBuilders.AnimationParameters.Builder |
Builder for |
AnimationParameterBuilders.AnimationSpec |
Animation parameters that can be added to any animatable node. |
AnimationParameterBuilders.AnimationSpec.Builder |
Builder for |
AnimationParameterBuilders.Repeatable |
The repeatable mode to be used for specifying how many times animation will be repeated. |
AnimationParameterBuilders.Repeatable.Builder |
Builder for |
AppDataKey |
Represent a |
ConditionScopes |
Intermediate scopes used inside of |
ConditionScopes.ConditionScope |
Condition scope to allow binding the true value in a onConditional expression. |
ConditionScopes.IfTrueScope |
Condition scope to allow binding the true value in a onConditional expression, yielding a resulting Dynamic value. |
DynamicBuilders |
Builders for dynamic primitive types used by layout elements. |
DynamicBuilders.DynamicFloat.FloatFormatter |
Allows formatting |
DynamicBuilders.DynamicFloat.FloatFormatter.Builder |
Builder to create |
DynamicBuilders.DynamicInt32.IntFormatter |
Allows formatting |
DynamicBuilders.DynamicInt32.IntFormatter.Builder |
Builder to create |
DynamicDataBuilders |
Builders for dynamic data value of a provider. |
DynamicDataKey |
Represent a key that references a dynamic value source, such as state pushed by app/tile or real-time data from the platform. |
DynamicDataMap |
A heterogeneous map of |
DynamicDataPair |
A pair of |
MutableDynamicDataMap |
A mutable heterogeneous map of |
PlatformDataKey |
Represent a |
PlatformDataValues |
Typed mapping of |
PlatformDataValues.Builder |
Builder for |
PlatformEventSources.DynamicLayoutUpdateStatus |
Dynamic layout update status value. |
PlatformHealthSources |
Dynamic types for platform health sources. |
PlatformHealthSources.DynamicHeartRateAccuracy |
Dynamic heart rate sensor accuracy value. |
PlatformHealthSources.Keys |
Data sources keys for platform health sources. |
VersionBuilders |
Builders for the schema version information of a layout (or an expression). |
VersionBuilders.VersionInfo |
Version information. |
VersionBuilders.VersionInfo.Builder |
Builder for |
Objects
PlatformEventSources |
Dynamic types for platform events |
PlatformEventSources.Keys |
Data sources keys for platform event. |
Annotations
ExperimentalProtoLayoutExtensionApi |
Denotes that this API surface is not usable by default and requires existence of an extension provider (on the rendering side). |
ProtoLayoutExperimental |
Denotes that this API surface is experimental. |
RequiresSchemaVersion |
Indicates the minimum schema version the annotated type is supported at. |
Top-level functions summary
Extension functions summary
Top-level functions
boolAppDataKey
fun boolAppDataKey(key: String): AppDataKey<DynamicBuilders.DynamicBool>
Create a AppDataKey with the specified key that references a boolean dynamic data.
| Parameters | |
|---|---|
key: String |
The key in the state to bind to. |
colorAppDataKey
fun colorAppDataKey(key: String): AppDataKey<DynamicBuilders.DynamicColor>
Create a AppDataKey with the specified key that references a color dynamic data.
| Parameters | |
|---|---|
key: String |
The key in the state to bind to. |
durationAppDataKey
fun durationAppDataKey(key: String): AppDataKey<DynamicBuilders.DynamicDuration>
Create a AppDataKey with the specified key that references a java.time.Duration dynamic data.
| Parameters | |
|---|---|
key: String |
The key in the state to bind to. |
dynamicDataMapOf
fun dynamicDataMapOf(vararg pairs: DynamicDataPair<*>): DynamicDataMap
Creates a DynamicDataMap.
floatAppDataKey
fun floatAppDataKey(key: String): AppDataKey<DynamicBuilders.DynamicFloat>
Create a AppDataKey with the specified key that references a float dynamic data.
| Parameters | |
|---|---|
key: String |
The key in the state to bind to. |
instantAppDataKey
fun instantAppDataKey(key: String): AppDataKey<DynamicBuilders.DynamicInstant>
Create a AppDataKey with the specified key that references an java.time.Instant dynamic data.
| Parameters | |
|---|---|
key: String |
The key in the state to bind to. |
intAppDataKey
fun intAppDataKey(key: String): AppDataKey<DynamicBuilders.DynamicInt32>
Create a AppDataKey with the specified key that references an int dynamic data.
| Parameters | |
|---|---|
key: String |
The key in the state to bind to. |
mutableDynamicDataMapOf
fun mutableDynamicDataMapOf(vararg pairs: DynamicDataPair<*>): MutableDynamicDataMap
Creates a MutableDynamicDataMap.
stringAppDataKey
fun stringAppDataKey(key: String): AppDataKey<DynamicBuilders.DynamicString>
Create a AppDataKey with the specified key that references a string dynamic data.
| Parameters | |
|---|---|
key: String |
The key in the state to bind to. |
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.