resumeWorkoutSession(_:)
Resumes the provided workout session.
Declaration
func resumeWorkoutSession(_ workoutSession: HKWorkoutSession)Parameters
- workoutSession:
The workout session to resume.
Discussion
This method resumes the provided session if it is currently paused. The workout session’s state transitions to HKWorkoutSessionState.running, and the system generates an HKWorkoutEventType.resume event and passes it to the workout session delegate’s workoutSession:didGenerateEvent: method.