BatchingMode


public final class BatchingMode


Batching mode during an active exercise when the device is in a non-interactive power state, used in ExerciseConfig. Not applicable when device is in interactive state because exercise updates will be streaming.

Summary

Public fields

static final @NonNull BatchingMode

Deliver smaller and more frequent batches of DataType.HEART_RATE_BPM when the device is not interactive (e.g. screen is off).

Public methods

boolean
equals(Object other)
int

Public fields

HEART_RATE_5_SECONDS

public static final @NonNull BatchingMode HEART_RATE_5_SECONDS

Deliver smaller and more frequent batches of DataType.HEART_RATE_BPM when the device is not interactive (e.g. screen is off).

This setting significantly increases power consumption, and is intended to be used by apps which need to send data to a separate device (e.g. a connected phone or TV) for real-time visualisation. It has no effect if the device is interactive.

The exact power/performance tradeoff of this mode is device implementation dependent and batched updates may be aligned with other wake ups but target five second updates.

Public methods

equals

public boolean equals(Object other)

hashCode

public int hashCode()