A workout session’s state.


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.

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