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

# previous(_:)

Creates a command that returns to the previous track in the playback queue.

## Declaration

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

## Parameters

- `action`: The closure the system calls to return to the previous track.

## See Also

### Navigating commands

- [next(_:)](nowplaying/mediacommand/next(_:).md)
- [skipForward(preferredIntervals:_:)](nowplaying/mediacommand/skipforward(preferredintervals:_:).md)
- [skipBackward(preferredIntervals:_:)](nowplaying/mediacommand/skipbackward(preferredintervals:_:).md)
