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

# next(_:)

Creates a command that advances to the next track in the playback queue.

## Declaration

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

## Parameters

- `action`: The closure the system calls to advance to the next track.

## Mentioned in

Publishing media sessions

## See Also

### Navigating commands

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