A workout session’s state.


enum HKWorkoutSessionState : Int


Session States

case notStarted

The workout session has not started.

case prepared

The session is ready but not yet running.

case running

The workout session is running.

case paused

The workout session has paused.

case stopped

The session has stopped.

case ended

The workout session has ended.

See Also


Running Workout Sessions

Track the user’s activities on Apple Watch.

class HKWorkoutSession

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

protocol HKWorkoutSessionDelegate

The session delegate protocol defines an interface for receiving notifications about errors and changes in the workout session’s state.

class HKWorkoutConfiguration

An object that contains configuration information about a workout session.