Instance Method

pauseWorkoutSession:

Pauses the provided workout session.

Declaration

- (void)pauseWorkoutSession:(HKWorkoutSession *)workoutSession;

Parameters

workoutSession

The workout session to pause.

Discussion

This method pauses the provided session if it is currently running. The workout session’s state transitions to HKWorkoutSessionStatePaused, and the system generates an HKWorkoutEventTypePause event and passes it to the workout session delegate’s workoutSession:didGenerateEvent: method.

See Also

Managing Workout Sessions

- startWatchAppWithWorkoutConfiguration:completion:

Launches or wakes the Watch app to create a new workout session.

- startWorkoutSession:

Starts a workout session for the current app.

Deprecated
- resumeWorkoutSession:

Resumes the provided workout session.

Deprecated
- endWorkoutSession:

Ends a workout session for the current app.

Deprecated