-
public interface HeartRateMeasurementCallback
-
-
Method Summary
Modifier and Type Method Description abstract voidonHeartRateMeasurementReceived(@NonNull() BluetoothDevice device, @IntRange(from = 0) int heartRate, @Nullable() Boolean contactDetected, @Nullable() @IntRange(from = 0) Integer energyExpanded, @Nullable() List<Integer> rrIntervals)Callback called when Hear Rate notification has been received. -
-
Method Detail
-
onHeartRateMeasurementReceived
abstract void onHeartRateMeasurementReceived(@NonNull() BluetoothDevice device, @IntRange(from = 0) int heartRate, @Nullable() Boolean contactDetected, @Nullable() @IntRange(from = 0) Integer energyExpanded, @Nullable() List<Integer> rrIntervals)
Callback called when Hear Rate notification has been received.
- Parameters:
device- the target device.heartRate- the current heart rate in beats per minute.contactDetected- information whether sensor contact has been detected, or not.Null if this feature is not supported.energyExpanded- the energy expanded in kilo Joules, or null if feature is not supported.rrIntervals- an optional list of RR intervals, each in 1/1024 of a second unit.Null if this feature is not supported.
-
-
-
-