---
title: "pause(_:)"
framework: healthkit
role: symbol
role_heading: Instance Method
path: "healthkit/hkhealthstore/pause(_:)"
---

# pause(_:)

Pauses the provided workout session.

## Declaration

```swift
func pause(_ workoutSession: HKWorkoutSession)
```

## Parameters

- `workoutSession`: The workout session to pause.

## Discussion

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 HKWorkoutEventType.pause event and passes it to the workout session delegate’s workoutSession:didGenerateEvent: method.

## See Also

### Managing workout sessions

- [workoutSessionMirroringStartHandler](healthkit/hkhealthstore/workoutsessionmirroringstarthandler.md)
- [startWatchApp(with:completion:)](healthkit/hkhealthstore/startwatchapp(with:completion:).md)
- [resumeWorkoutSession(_:)](healthkit/hkhealthstore/resumeworkoutsession(_:).md)
