Contents

highHeartRateEvent

A category sample type for high heart rate events.

Declaration

static let highHeartRateEvent: HKCategoryTypeIdentifier

Discussion

The system creates highHeartRateEvent samples whenever Apple Watch produces a high heart rate notification. For more information, see Heart rate notifications on your Apple Watch.

The high heart rate samples are read-only. You can request permission to read the samples using this identifier, but you can’t request authorization to share them. This means you can’t save new high heart rate events to the HealthKit store. To add test data in iOS Simulator, open the Health app and select Browse > Heart > High Heart Rate Notifications > Add Data.

These samples have a value of HKCategoryValue.notApplicable and include HKMetadataKeyHeartRateEventThreshold metadata.

Topics

Metadata Keys

See Also

Vital signs