Appearance
High Fasting Glucose Risk
The High Fasting Glucose Risk value is sent as part of the final results.
This indicator is supported for face measurements on Android smartphones and tablets.
The enum definition for the result includes three entries: Low, Medium, and High. However, in this version, only Low and High results will be used.
The application can receive the High Fasting Glucose Risk result by implementing VitalSignsListener:
Kotlin
override fun onFinalResults(results: VitalSignsResults) {
runOnUiThread {
(results.getResult(VitalSignTypes.HIGH_FASTING_GLUCOSE_RISK) as? VitalSignHighFastingGlucoseRisk)?.let { highFastingGlucoseRisk ->
Log.i("VITAL SIGN", "High Fasting Glucose Risk: ${highFastingGlucoseRisk.value.name}")
}
}
}Java
@Override
public void onFinalResults(final VitalSignsResults results) {
runOnUiThread(() -> {
VitalSignHighFastingGlucoseRisk highFastingGlucoseRisk = (VitalSignHighFastingGlucoseRisk) results.getResult(VitalSignTypes.HIGH_FASTING_GLUCOSE_RISK);
if (highFastingGlucoseRisk != null) {
Log.i("VITAL SIGN", "High Fasting Glucose Risk: " + highFastingGlucoseRisk.getValue().name());
}
});
}For general information about vital signs see the Vital Signs and Health Indicators Information Document.
For a list of supported vital signs per platform and measurement mode (face/polar) see the Supported Vital Signs Document.
Important
Note that vital signs are sent on a background thread. The application must switch to the UI thread in order to perform UI updates.