Enumeration

HKWorkoutSessionState

A workout session’s state.

Declaration

typedef enum HKWorkoutSessionState : NSInteger {
    ...
} HKWorkoutSessionState;

Topics

Session States

HKWorkoutSessionStateNotStarted

The workout session has not started.

HKWorkoutSessionStatePrepared

The session is ready but not yet running.

HKWorkoutSessionStateRunning

The workout session is running.

HKWorkoutSessionStatePaused

The workout session has paused.

HKWorkoutSessionStateStopped

The session has stopped.

HKWorkoutSessionStateEnded

The workout session has ended.

See Also

Sessions

Running Workout Sessions

Track a workout on Apple Watch.

HKWorkoutSession

A session that tracks the user’s workout on Apple Watch.

HKWorkoutConfiguration

An object that contains configuration information about a workout session.

HKLiveWorkoutBuilder

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

HKLiveWorkoutDataSource

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