HKHeartbeatSeriesSample
A sample that represents a series of heartbeats.
Declaration
class HKHeartbeatSeriesSampleOverview
Use a HKHeartbeatSeriesQuery to access the underlying heartbeat data.
The HKHeartbeatSeriesSample class is a subclass of the HKSeriesSample class. These samples are immutable; you set the sample’s properties when you build them, and they can’t change.
Extend Heartbeat Samples
Like many HealthKit classes, you shouldn’t subclass the HKHeartbeatSeriesSample class. You may extend this class by adding metadata with custom keys to save related data used by your app.
For more information, see addMetadata(_:completion:).