Class

HKHeartbeatSeriesSample

A sample that represents a series of heartbeats.

Declaration

class HKHeartbeatSeriesSample : HKSeriesSample

Overview

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 cannot change.

Use Heartbeat Samples

Like many HealthKit classes, you should not 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:).

Relationships

Inherits From

Conforms To

See Also

Heartbeat Series

class HKHeartbeatSeriesBuilder

A builder object for incrementally building a heartbeat series.