PlatformHealthSources.DynamicHeartRateAccuracy


class PlatformHealthSources.DynamicHeartRateAccuracy : DynamicBuilders.DynamicInt32


Dynamic heart rate sensor accuracy value.

Summary

Public functions

java-static PlatformHealthSources.DynamicHeartRateAccuracy
@RequiresSchemaVersion(major = 1, minor = 200)
constant(val: Int)

Creates a constant-valued DynamicHeartRateAccuracy.

java-static DynamicDataBuilders.DynamicDataValue<PlatformHealthSources.DynamicHeartRateAccuracy!>
@RequiresSchemaVersion(major = 1, minor = 200)
dynamicDataValueOf(val: 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.

java-static DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
animate(dynamicDataKey: DynamicDataKey<DynamicBuilders.DynamicInt32!>)

Creates a DynamicInt32 that is bound to the value of an item of the State.

java-static DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
animate(
    dynamicDataKey: DynamicDataKey<DynamicBuilders.DynamicInt32!>,
    animationSpec: AnimationParameterBuilders.AnimationSpec
)

Creates a DynamicInt32 that is bound to the value of an item of the State.

java-static DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
animate(start: Int, end: Int)

Creates a DynamicInt32 which will animate from start to end.

java-static DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
animate(
    start: Int,
    end: Int,
    animationSpec: AnimationParameterBuilders.AnimationSpec
)

Creates a DynamicInt32 which will animate from start to end with the given animation parameters.

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

Convert the value represented by this DynamicInt32 into a DynamicFloat.

java-static DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
constant(constant: Int)

Creates a constant-valued DynamicInt32.

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

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

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

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

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

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

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

Creates a DynamicInt32 containing the result of dividing this 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 (with default formatting parameters).

DynamicBuilders.DynamicString

Returns a DynamicString that contains the formatted value of this .

java-static DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
from(dynamicDataKey: DynamicDataKey<DynamicBuilders.DynamicInt32!>)

Creates a DynamicInt32 that is bound to the value of an item of the State.

java-static DynamicBuilders.DynamicInt32

Creates a DynamicInt32 from a byte array generated by toDynamicInt32ByteArray.

java-static DynamicBuilders.DynamicInt32
fromByteArray(byteArray: ByteArray, offset: Int, length: Int)

Creates a DynamicInt32 from the provided byte array at the provided offset and length, that was generated by one of the toDynamicInt32ByteArray overloads.

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.

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

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

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

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

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)

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.

java-static ConditionScopes.ConditionScope<DynamicBuilders.DynamicInt32!, Int!>
@RequiresSchemaVersion(major = 1, minor = 200)
onCondition(condition: DynamicBuilders.DynamicBool)

Bind the value of this DynamicInt32 to the result of a conditional expression.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

ByteArray<Byte>

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 functions

constant

Added in 1.2.0-alpha01
@RequiresSchemaVersion(major = 1, minor = 200)
java-static fun constant(val: Int): PlatformHealthSources.DynamicHeartRateAccuracy

Creates a constant-valued DynamicHeartRateAccuracy.

dynamicDataValueOf

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
java-static fun dynamicDataValueOf(val: Int): DynamicDataBuilders.DynamicDataValue<PlatformHealthSources.DynamicHeartRateAccuracy!>

Creates a value to be provided from a PlatformDataProvider.