Instance Method


Returns the series builder for the specified type, creating a new builder, if necessary.


func seriesBuilder(for seriesType: HKSeriesType) -> HKSeriesBuilder?

See Also

Associating Samples with the Workout

func add([HKSample], completion: (Bool, Error?) -> Void)

Adds a sample to be associated with the workout.

func statistics(for: HKQuantityType) -> HKStatistics?

Returns the statistics calculated for matching samples added to the workout.