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.

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

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

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software