public class LegacyHeartRateCompat extends java.lang.Object implements AntPlusHeartRatePcc.IHeartRateDataReceiver
Constructor and Description |
---|
LegacyHeartRateCompat(AntPlusHeartRatePcc.IHeartRateDataReceiver HeartRateDataReceiver) |
Modifier and Type | Method and Description |
---|---|
void |
onNewHeartRateData(long estTimestamp,
java.util.EnumSet<EventFlag> eventFlags,
int computedHeartRate,
long heartBeatCount,
java.math.BigDecimal heartBeatEventTime,
AntPlusHeartRatePcc.DataState dataState)
When heart rate data is received with a null value for heartBeatEventTimestamp, this method
should be called with the received data.
|
void |
onNewHeartRateDataTimestamp(long estTimestamp,
java.util.EnumSet<EventFlag> eventFlags,
java.math.BigDecimal heartBeatEventTime)
Called when legacy heartBeatTimestamp event is received.
|
public LegacyHeartRateCompat(AntPlusHeartRatePcc.IHeartRateDataReceiver HeartRateDataReceiver)
public void onNewHeartRateDataTimestamp(long estTimestamp, java.util.EnumSet<EventFlag> eventFlags, java.math.BigDecimal heartBeatEventTime)
public void onNewHeartRateData(long estTimestamp, java.util.EnumSet<EventFlag> eventFlags, int computedHeartRate, long heartBeatCount, java.math.BigDecimal heartBeatEventTime, AntPlusHeartRatePcc.DataState dataState)
onNewHeartRateData
in interface AntPlusHeartRatePcc.IHeartRateDataReceiver
estTimestamp
- The estimated timestamp of when this event was triggered. Useful for
correlating multiple events and determining when data was sent for more accurate
data records.eventFlags
- Informational flags about the event.computedHeartRate
- Current heart rate valid for display, computed by sensor. Units:
BPM.heartBeatCount
- Heart beat count. Units: beats. Rollover: Every ~9 quintillion
beats.heartBeatEventTime
- Sensor reported time counter value of last distance or speed
computation (up to 1/1024s accuracy). Units: s. Rollover: Every ~9 quadrillion s.dataState
- The state of the data. If stale, app should indicate to the user that
the device is not active. @since 2.1.7; supported on Plugin Service
2.2.8+. Earlier versions of the service will only send LIVE_DATA flag.Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.