public static interface AntPlusHeartRatePcc.IHeartRateDataReceiver
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)
Receives the data from a HeartRateData event.
|
void onNewHeartRateData(long estTimestamp, java.util.EnumSet<EventFlag> eventFlags, int computedHeartRate, long heartBeatCount, java.math.BigDecimal heartBeatEventTime, AntPlusHeartRatePcc.DataState dataState)
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.