---
title: "pause(_:)"
framework: nowplaying
role: symbol
role_heading: Type Method
path: "nowplaying/mediacommand/pause(_:)"
---

# pause(_:)

Creates a command that pauses media playback.

## Declaration

```swift
static func pause(_ action: @escaping () async throws -> Void) -> MediaCommand
```

## Parameters

- `action`: The closure the system calls to pause playback.

## See Also

### Controlling playback

- [play(_:)](nowplaying/mediacommand/play(_:).md)
- [stop(_:)](nowplaying/mediacommand/stop(_:).md)
- [togglePlayPause(_:)](nowplaying/mediacommand/toggleplaypause(_:).md)
