Appearance
Normalized Stress Index
The Normalized Stress Index value is sent as part of the final results.
The application can receive the Normalized Stress Index result by implementing VitalSignsListener:
Kotlin
override fun onFinalResults(results: VitalSignsResults) {
runOnUiThread {
(results.getResult(VitalSignTypes.NORMALIZED_STRESS_INDEX) as? VitalSignNormalizedStressIndex)?.let { normalizedStressIndex ->
Log.i("VITAL SIGN", "Normalized Stress Index: ${normalizedStressIndex.value}")
}
}
}Java
@Override
public void onFinalResults(final VitalSignsResults results) {
runOnUiThread(() -> {
VitalSignNormalizedStressIndex normalizedStressIndex = (VitalSignNormalizedStressIndex) results.getResult(VitalSignTypes.NORMALIZED_STRESS_INDEX);
if (normalizedStressIndex != null) {
Log.i("VITAL SIGN", "Normalized Stress Index: " + normalizedStressIndex.getValue());
}
});
}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.