Instance Method

initWithHealthStore:device:startDate:

Creates a new heartbeat series builder.

Declaration

- (instancetype)initWithHealthStore:(HKHealthStore *)healthStore device:(HKDevice *)device startDate:(NSDate *)startDate;

Parameters

healthStore

The HealthKit store.

device

An object representing the device that provided the heartbeat data. Pass nil if the app is generating its own data.

start

The sample’s start date.

See Also

Creating a Heartbeat Series Builder

maximumCount

The maximum number of heartbeats you can add to the sample.