PlatformHealthSources.DynamicHeartRateAccuracy


public final class PlatformHealthSources.DynamicHeartRateAccuracy implements DynamicBuilders.DynamicInt32


Dynamic heart rate sensor accuracy value.

Summary

Public methods

static @NonNull PlatformHealthSources.DynamicHeartRateAccuracy
@RequiresSchemaVersion(major = 1, minor = 200)
constant(int val)

Creates a constant-valued DynamicHeartRateAccuracy.

static @NonNull DynamicDataBuilders.DynamicDataValue<PlatformHealthSources.DynamicHeartRateAccuracy>
@RequiresSchemaVersion(major = 1, minor = 200)
dynamicDataValueOf(int val)

Creates a value to be provided from a PlatformDataProvider.

Inherited methods

From androidx.wear.protolayout.expression.DynamicBuilders.DynamicInt32
@NonNull 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.

@NonNull DynamicBuilders.DynamicInt32

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.

static @NonNull DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
animate(
    @NonNull DynamicDataKey<DynamicBuilders.DynamicInt32> dynamicDataKey
)

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

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

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

static @NonNull DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
animate(int start, int end)

Creates a DynamicInt32 which will animate from start to end.

static @NonNull DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
animate(
    int start,
    int end,
    @NonNull AnimationParameterBuilders.AnimationSpec animationSpec
)

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

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

Convert the value represented by this DynamicInt32 into a DynamicFloat.

static @NonNull DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
constant(int constant)

Creates a constant-valued DynamicInt32.

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

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

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

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

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

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

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

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

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

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

@NonNull DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
eq(int other)

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

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

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

@NonNull DynamicBuilders.DynamicString

Returns a DynamicString that contains the formatted value of this .

static @NonNull DynamicBuilders.DynamicInt32
@RequiresSchemaVersion(major = 1, minor = 200)
from(
    @NonNull DynamicDataKey<DynamicBuilders.DynamicInt32> dynamicDataKey
)

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

static @NonNull DynamicBuilders.DynamicInt32
fromByteArray(@NonNull byte[] byteArray)

Creates a DynamicInt32 from a byte array generated by toDynamicInt32ByteArray.

static @NonNull DynamicBuilders.DynamicInt32
fromByteArray(@NonNull byte[] byteArray, int offset, int length)

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

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

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

@NonNull DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
gt(int other)

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

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

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

@NonNull DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
gte(int other)

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

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

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

@NonNull DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
lt(int other)

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

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

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

@NonNull DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
lte(int other)

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

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

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

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

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

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

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)

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

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

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

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

@NonNull DynamicBuilders.DynamicBool
@RequiresSchemaVersion(major = 1, minor = 200)
ne(int other)

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

static @NonNull ConditionScopes.ConditionScope<DynamicBuilders.DynamicInt32Integer>
@RequiresSchemaVersion(major = 1, minor = 200)
onCondition(@NonNull DynamicBuilders.DynamicBool condition)

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

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

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)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@NonNull byte[]

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

int
toDynamicInt32ByteArray(@NonNull byte[] byteArray)

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(@NonNull byte[] byteArray, int offset, int length)

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 methods

constant

Added in 1.3.0-alpha04
@RequiresSchemaVersion(major = 1, minor = 200)
public static @NonNull PlatformHealthSources.DynamicHeartRateAccuracy constant(int val)

Creates a constant-valued DynamicHeartRateAccuracy.

dynamicDataValueOf

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public static @NonNull DynamicDataBuilders.DynamicDataValue<PlatformHealthSources.DynamicHeartRateAccuracydynamicDataValueOf(int val)

Creates a value to be provided from a PlatformDataProvider.