Instance Property

stopCommand

The command object for stopping playback of the current item.

Declaration

var stopCommand: MPRemoteCommand { get }

Discussion

Use the object in this property to register your app’s handler for stopping playback of the current track. In your handler, stop playback the current item. You can disable the command if your app does not support it.

See Also

Playback Commands

var pauseCommand: MPRemoteCommand

The command object for pausing playback of the current item.

var playCommand: MPRemoteCommand

The command object for starting playback of the current item.

var togglePlayPauseCommand: MPRemoteCommand

The command object for toggling between playing and pausing the current item.