---
title: stopCommand
framework: mediaplayer
role: symbol
role_heading: Instance Property
path: mediaplayer/mpremotecommandcenter/stopcommand
---

# stopCommand

The command object for stopping playback of the current item.

## Declaration

```swift
var stopCommand: MPRemoteCommand { get }
```

## Discussion

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

- [pauseCommand](mediaplayer/mpremotecommandcenter/pausecommand.md)
- [playCommand](mediaplayer/mpremotecommandcenter/playcommand.md)
- [togglePlayPauseCommand](mediaplayer/mpremotecommandcenter/toggleplaypausecommand.md)
