Appearance
Heart Age
The Heart Age value is sent as part of the final results.
The User Information is required to calculate the Heart Age result. If any details are missing from the User Information, the Heart Age will not be calculated. For more information on User Information, see the User Information page.
This indicator is supported for face measurements on iPhones.
The application can receive the Heart Age result by implementing VitalSignsListener:
Swift
func onFinalResults(results: VitalSignsResults) {
DispatchQueue.main.async {
if let heartAge = results.getResult(of: VitalSignTypes.heartAge) as? VitalSignHeartAge {
print("Heart Age: \(heartAge.value)")
}
}
}Objective-C
- (void)onFinalResultsWithResults:(BIOVitalSignsResults *)results {
dispatch_async(dispatch_get_main_queue(), ^{
BIOVitalSignHeartAge *heartAge = (BIOVitalSignHeartAge *)[results getResultOf:BIOVitalSignTypes.heartAge];
if (heartAge != nil) {
NSLog(@"Heart Age: %ld", (long)heartAge.value);
}
});
}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.