Class

HKLiveWorkoutBuilder

A builder object that constructs a workout incrementally based on live data from an active workout session.

Topics

Configuring a Live Workout Buidler.

var dataSource: HKLiveWorkoutDataSource?

A data source that provides live data from a workout session automatically.

class HKLiveWorkoutDataSource

A data source that automatically provides live data from an active workout session.

var workoutSession: HKWorkoutSession?

The workout session created by the data source and associated with this builder.

Monitoring and Controlling the Workout

var delegate: HKLiveWorkoutBuilderDelegate?

The live builder’s delegate.

protocol HKLiveWorkoutBuilderDelegate

A protocol for monitoring live workout buiders.

var shouldCollectWorkoutEvents: Bool

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

Accessing Data

var elapsedTime: TimeInterval

The elapsed time for the workout based on the builder's current contents, including pauses.

Relationships

Inherits From

Conforms To

See Also

Workout Bulder

class HKWorkoutBuilder

A builder object that constructs a workout incrementally.

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