Protocol

HKLiveWorkoutBuilderDelegate

A protocol for monitoring live workout builders.

Declaration

protocol HKLiveWorkoutBuilderDelegate

Topics

Tracking Live Data

func workoutBuilder(HKLiveWorkoutBuilder, didCollectDataOf: Set<HKSampleType>)

Tells the delegate that new data has been added to the builder.

Required.

func workoutBuilderDidCollectEvent(HKLiveWorkoutBuilder)

Tells the delegate that a new event has been added to the builder.

Required.

Relationships

Inherits From

See Also

Monitoring and Controlling the Workout

var delegate: HKLiveWorkoutBuilderDelegate?

The live builder’s delegate.

var shouldCollectWorkoutEvents: Bool

A Boolean value that determines whether the workout builder automatically adds events generated by the workout session.