Instance Method

statistics(for:)

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

Declaration

func statistics(for quantityType: HKQuantityType) -> HKStatistics?

See Also

Associating Samples with the Workout

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

Adds a sample to be associated with the workout.

func seriesBuilder(for: HKSeriesType) -> HKSeriesBuilder?

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