Instance Property

previousTrackCommand

The command object for selecting the previous track.

Declaration

var previousTrackCommand: MPRemoteCommand { get }

Discussion

Use the object in this property to register your app’s handler for selecting the previous track. In your handler, select the media item that precedes the current media item. You can disable the command if your app does not support it.

See Also

Navigating Between Tracks

var nextTrackCommand: MPRemoteCommand

The command object for selecting the next track.

var changeRepeatModeCommand: MPChangeRepeatModeCommand

The command object for changing the repeat mode.

var changeShuffleModeCommand: MPChangeShuffleModeCommand

The command object for changing the shuffle mode.