-
public interface GlucoseMeasurementContextCallback
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumGlucoseMeasurementContextCallback.Carbohydratepublic enumGlucoseMeasurementContextCallback.Mealpublic enumGlucoseMeasurementContextCallback.Testerpublic enumGlucoseMeasurementContextCallback.Healthpublic enumGlucoseMeasurementContextCallback.Medication
-
Method Summary
Modifier and Type Method Description abstract voidonGlucoseMeasurementContextReceived(@NonNull() BluetoothDevice device, @IntRange(from = 0, to = 65535) int sequenceNumber, @Nullable() GlucoseMeasurementContextCallback.Carbohydrate carbohydrate, @Nullable() Float carbohydrateAmount, @Nullable() GlucoseMeasurementContextCallback.Meal meal, @Nullable() GlucoseMeasurementContextCallback.Tester tester, @Nullable() GlucoseMeasurementContextCallback.Health health, @Nullable() @IntRange(from = 0, to = 65535) Integer exerciseDuration, @Nullable() @IntRange(from = 0, to = 100) Integer exerciseIntensity, @Nullable() GlucoseMeasurementContextCallback.Medication medication, @Nullable() Float medicationAmount, @Nullable() Integer medicationUnit, @Nullable() @FloatRange(from = 0.0f, to = 100.0f) Float HbA1c)Callback called when Glucose Measurement Context value was received. -
-
Method Detail
-
onGlucoseMeasurementContextReceived
abstract void onGlucoseMeasurementContextReceived(@NonNull() BluetoothDevice device, @IntRange(from = 0, to = 65535) int sequenceNumber, @Nullable() GlucoseMeasurementContextCallback.Carbohydrate carbohydrate, @Nullable() Float carbohydrateAmount, @Nullable() GlucoseMeasurementContextCallback.Meal meal, @Nullable() GlucoseMeasurementContextCallback.Tester tester, @Nullable() GlucoseMeasurementContextCallback.Health health, @Nullable() @IntRange(from = 0, to = 65535) Integer exerciseDuration, @Nullable() @IntRange(from = 0, to = 100) Integer exerciseIntensity, @Nullable() GlucoseMeasurementContextCallback.Medication medication, @Nullable() Float medicationAmount, @Nullable() Integer medicationUnit, @Nullable() @FloatRange(from = 0.0f, to = 100.0f) Float HbA1c)
Callback called when Glucose Measurement Context value was received.
- Parameters:
device- the target device.sequenceNumber- the sequence number that matches the Glucose Measurementsequence number.carbohydrate- an optional carbohydrate ID.carbohydrateAmount- amount of carbohydrate in grams.meal- an optional meal ID.tester- an optional tester ID.health- an optional health information.exerciseDuration- exercise duration in seconds.exerciseIntensity- exercise intensity in percent.medication- an optional medication ID.medicationAmount- amount of medication in milligrams or milliliters,depending on the medicationUnit value.medicationUnit- the unit of medication amount (UNIT_mg or UNIT_ml).HbA1c- the amount of glycated haemoglobin, in percentage.
-
-
-
-