Instance Method

add(_:completion:)

Adds a sample to be associated with the workout.

Declaration

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

See Also

Associating Samples with the Workout

func seriesBuilder(for: HKSeriesType) -> HKSeriesBuilder?

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

func statistics(for: HKQuantityType) -> HKStatistics?

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