Instance Method

initWithHealthStore:quantityType:startDate:device:

Creates a new quantity series builder.

Declaration

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

Parameters

healthStore

The HealthKit store.

quantityType

The sample’s quantity type.

start

The sample’s start date.

device

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

See Also

Creating a Quantity Series Builder

quantityType

The quantity type for the series.

startDate

The starting date and time for the sample.

device

The device providing the data.