Skip to content
On this page

Hemoglobin A1c ​

The Hemoglobin A1c value is sent as part of the final results.

The application can receive the Hemoglobin A1c result by implementing VitalSignsListener:

Kotlin
override fun onFinalResults(results: VitalSignsResults) {
    runOnUiThread {
        (results.getResult(VitalSignTypes.HEMOGLOBIN_A1C) as? VitalSignHemoglobinA1C)?.let { hemoglobinA1C ->
            Log.i("VITAL SIGN", "Hemoglobin A1c: ${hemoglobinA1C.value})
        }
    }
}
Java
@Override
public void onFinalResults(final VitalSignsResults results) {
    runOnUiThread(() -> {
        VitalSignHemoglobinA1C hemoglobinA1C = (VitalSignHemoglobinA1C) results.getResult(VitalSignTypes.HEMOGLOBIN_A1C);
        if (hemoglobin != null) {
            Log.i("VITAL SIGN", "Hemoglobin A1c: "
                    + hemoglobinA1C.value
            );
        }
    });
}

For general information about vital signs see the Vital Signs and Health Indicators Information Page.

For a list of supported vital signs per platform and measurement mode (face/finger) see the Supported Vital Signs Page.

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.