---
title: "skipForward(preferredIntervals:_:)"
framework: nowplaying
role: symbol
role_heading: Type Method
path: "nowplaying/mediacommand/skipforward(preferredintervals:_:)"
---

# skipForward(preferredIntervals:_:)

Creates a command that skips forward in the media by a specified time interval.

## Declaration

```swift
static func skipForward(preferredIntervals: [TimeInterval] = [10], _ action: @escaping (TimeInterval) async throws -> Void) -> MediaCommand
```

## Parameters

- `preferredIntervals`: An array of preferred time intervals, in seconds. Defaults to 10 seconds.
- `action`: The closure the system calls to skip forward. Receives the selected interval.

## See Also

### Navigating commands

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