Appearance
Stress Level
The Stress Level value is sent as part of the final results.
The application can receive the Stress Level result by implementing VitalSignsListener
:
Dart
@override
void onFinalResults(VitalSignsResults results) {
VitalSign? vitalSign = results.getResult(VitalSignTypes.stressLevel);
if (vitalSign != null && vitalSign is VitalSignStressLevel) {
VitalSignStressLevel stressLevel = vitalSign;
print("Stress Level: ${stressLevel.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.