Instance Property


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


var shouldCollectWorkoutEvents: Bool { get set }


By default, this property is true. Set it to false if your app adds its own events to the workout builder, and you want to ignore events from the workout session.

You must set this property before calling the workout builder’s beginCollection(withStart:completion:) method.

See Also

Monitoring and Controlling the Workout

var delegate: HKLiveWorkoutBuilderDelegate?

The live builder’s delegate.

protocol HKLiveWorkoutBuilderDelegate

A protocol for monitoring live workout builders.