PlatformEventSources.DynamicLayoutUpdateStatus


class PlatformEventSources.DynamicLayoutUpdateStatus : DynamicBuilders.DynamicInt32


Dynamic layout update status value.

Summary

Public companion functions

PlatformEventSources.DynamicLayoutUpdateStatus
@RequiresSchemaVersion(major = 1, minor = 600)
constant(value: Int)

Creates a constant-valued DynamicLayoutUpdateStatus.

DynamicDataBuilders.DynamicDataValue<PlatformEventSources.DynamicLayoutUpdateStatus>
@RequiresSchemaVersion(major = 1, minor = 600)
dynamicDataValueOf(value: Int)

Creates a value to be provided from a PlatformDataProvider.

Inherited functions

From androidx.wear.protolayout.expression.DynamicBuilders.DynamicInt32
DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
animate()

Returns a DynamicInt32 that is bound to the value of this DynamicInt32 and every time its value is changing, it animates from its current value to the new value.

DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
animate(animationSpec: AnimationParameterBuilders.AnimationSpec)

Returns a DynamicInt32 that is bound to the value of this DynamicInt32 and every time its value is changing, it animates from its current value to the new value.

DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
asFloat()

Convert the value represented by this DynamicInt32 into a DynamicFloat.

operator DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
div(other: DynamicBuilders.DynamicFloat)

Creates a DynamicFloat containing the result of dividing this DynamicInt32 by a DynamicFloat; As an example, the following is equal to DynamicFloat.constant(1.4f)

operator DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
div(other: DynamicBuilders.DynamicInt32)

Creates a DynamicInt32 containing the result of dividing this DynamicInt32 by another DynamicInt32; As an example, the following is equal to DynamicInt32.constant(1)

operator DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
div(other: Float)

Creates a DynamicFloat containing the result of dividing this DynamicInt32 by a float; As an example, the following is equal to DynamicFloat.constant(1.4f)

operator DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
div(other: Int)

Creates a DynamicInt32 containing the result of dividing this DynamicInt32 by an integer; As an example, the following is equal to DynamicInt32.constant(1)

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
eq(other: DynamicBuilders.DynamicInt32)

Returns a DynamicBool that is true if the value of this DynamicInt32 and other are equal, otherwise it's false.

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
eq(other: Int)

Returns a DynamicBool that is true if the value of this DynamicInt32 and other are equal, otherwise it's false.

DynamicBuilders.DynamicString
@RequiresSchemaVersion(major = 1, minor = 200)
format()

Returns a DynamicString that contains the formatted value of this DynamicInt32 (with default formatting parameters).

DynamicBuilders.DynamicString

Returns a DynamicString that contains the formatted value of this DynamicInt32.

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
gt(other: DynamicBuilders.DynamicInt32)

Returns a DynamicBool that is true if the value of this DynamicInt32 is greater than other, otherwise it's false.

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
gt(other: Int)

Returns a DynamicBool that is true if the value of this DynamicInt32 is greater than other, otherwise it's false.

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
gte(other: DynamicBuilders.DynamicInt32)

Returns a DynamicBool that is true if the value of this DynamicInt32 is greater than or equal to other, otherwise it's false.

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
gte(other: Int)

Returns a DynamicBool that is true if the value of this DynamicInt32 is greater than or equal to other, otherwise it's false.

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
lt(other: DynamicBuilders.DynamicInt32)

Returns a DynamicBool that is true if the value of this DynamicInt32 is less than other, otherwise it's false.

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
lt(other: Int)

Returns a DynamicBool that is true if the value of this DynamicInt32 is less than other, otherwise it's false.

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
lte(other: DynamicBuilders.DynamicInt32)

Returns a DynamicBool that is true if the value of this DynamicInt32 is less than or equal to other, otherwise it's false.

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
lte(other: Int)

Returns a DynamicBool that is true if the value of this DynamicInt32 is less than or equal to other, otherwise it's false.

operator DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
minus(other: DynamicBuilders.DynamicFloat)

Creates a DynamicFloat containing the result of subtracting a DynamicFloat from this DynamicInt32; As an example, the following is equal to DynamicFloat.constant(1.5f)

operator DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
minus(other: DynamicBuilders.DynamicInt32)

Creates a DynamicInt32 containing the result of subtracting another DynamicInt32 from this DynamicInt32; As an example, the following is equal to DynamicInt32.constant(2)

operator DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
minus(other: Float)

Creates a DynamicFloat containing the result of subtracting a float from this DynamicInt32; As an example, the following is equal to DynamicFloat.constant(1.5f)

operator DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
minus(other: Int)

Creates a DynamicInt32 containing the result of subtracting an integer from this DynamicInt32; As an example, the following is equal to DynamicInt32.constant(2)

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
ne(other: DynamicBuilders.DynamicInt32)

Returns a DynamicBool that is true if the value of this DynamicInt32 and other are not equal, otherwise it's false.

DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
ne(other: Int)

Returns a DynamicBool that is true if the value of this DynamicInt32 and other are not equal, otherwise it's false.

operator DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
plus(other: DynamicBuilders.DynamicFloat)

Creates a DynamicFloat containing the result of adding a DynamicFloat to this DynamicInt32; As an example, the following is equal to DynamicFloat.constant(13.5f)

operator DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
plus(other: DynamicBuilders.DynamicInt32)

Creates a DynamicInt32 containing the result of adding another DynamicInt32 to this DynamicInt32; As an example, the following is equal to DynamicInt32.constant(13)

operator DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
plus(other: Float)

Creates a DynamicFloat containing the result of adding a float to this DynamicInt32; As an example, the following is equal to DynamicFloat.constant(13.5f)

operator DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
plus(other: Int)

Creates a DynamicInt32 containing the result of adding an integer to this DynamicInt32; As an example, the following is equal to DynamicInt32.constant(13)

operator DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
rem(other: DynamicBuilders.DynamicFloat)

Creates a DynamicFloat containing the reminder of dividing this DynamicInt32 by a DynamicFloat; As an example, the following is equal to DynamicFloat.constant(1.5f)

operator DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
rem(other: DynamicBuilders.DynamicInt32)

Creates a DynamicInt32 containing the reminder of dividing this DynamicInt32 by another DynamicInt32; As an example, the following is equal to DynamicInt32.constant(2)

operator DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
rem(other: Float)

Creates a DynamicInt32 containing the reminder of dividing this DynamicInt32 by a float; As an example, the following is equal to DynamicFloat.constant(1.5f)

operator DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
rem(other: Int)

Creates a DynamicInt32 containing the reminder of dividing this DynamicInt32 by an integer; As an example, the following is equal to DynamicInt32.constant(2)

operator DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
times(other: DynamicBuilders.DynamicFloat)

Creates a DynamicFloat containing the result of multiplying this DynamicInt32 by a DynamicFloat; As an example, the following is equal to DynamicFloat.constant(38.5f)

operator DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
times(other: DynamicBuilders.DynamicInt32)

Creates a DynamicInt32 containing the result of multiplying this DynamicInt32 by another DynamicInt32; As an example, the following is equal to DynamicInt32.constant(35)

operator DynamicBuilders.DynamicFloat
@RequiresSchemaVersion(major = 1, minor = 200)
times(other: Float)

Creates a DynamicFloat containing the result of multiplying this DynamicInt32 by a float; As an example, the following is equal to DynamicFloat.constant(38.5f)

operator DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
times(other: Int)

Creates a DynamicInt32 containing the result of multiplying this DynamicInt32 by an integer; As an example, the following is equal to DynamicInt32.constant(35)

ByteArray

Serializes the DynamicInt32 into a new byte array that can later be used with fromByteArray.

Int

Serializes the DynamicInt32 into the provided byte array, returning the amount of bytes written, that can later be used with DynamicInt32.fromByteArray(byteArray, 0, bytesWritten).

Int
toDynamicInt32ByteArray(byteArray: ByteArray, offset: Int, length: Int)

Serializes the DynamicInt32 into the provided byte array, returning the amount of bytes written, limited by the provided offset and length, that can later be used with DynamicInt32.fromByteArray(byteArray, offset, bytesWritten).

Public companion functions

constant

Added in 1.4.2
@RequiresSchemaVersion(major = 1, minor = 600)
fun constant(value: Int): PlatformEventSources.DynamicLayoutUpdateStatus

Creates a constant-valued DynamicLayoutUpdateStatus.

dynamicDataValueOf

Added in 1.4.2
@RequiresSchemaVersion(major = 1, minor = 600)
fun dynamicDataValueOf(value: Int): DynamicDataBuilders.DynamicDataValue<PlatformEventSources.DynamicLayoutUpdateStatus>

Creates a value to be provided from a PlatformDataProvider.