Class

MPRemoteCommandCenter

An object that responds to remote control events sent by external accessories and system controls.

Declaration

@interface MPRemoteCommandCenter : NSObject

Overview

Do not create instances of this class yourself. Instead, use the sharedCommandCenter method to retrieve the shared command center object. The properties of the shared command center object contain MPRemoteCommand objects that respond to the various kinds of remote control events. You configure these objects to respond to the events you are interested in handling in your app.

Topics

Retrieving the shared instance

sharedCommandCenter

Returns the shared object you use to access the system’s remote command objects.

Playback Commands

pauseCommand

The command object for pausing playback of the current item.

playCommand

The command object for starting playback of the current item.

stopCommand

The command object for stopping playback of the current item.

togglePlayPauseCommand

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

Navigating Between Tracks

nextTrackCommand

The command object for selecting the next track.

previousTrackCommand

The command object for selecting the previous track.

changeRepeatModeCommand

The command object for changing the repeat mode.

changeShuffleModeCommand

The command object for changing the shuffle mode.

Navigating a Track’s Contents

changePlaybackRateCommand

The command object for changing the playback rate of the current media item.

seekBackwardCommand

The command object for seeking backward through a single media item.

seekForwardCommand

The command object for seeking forward through a single media item.

skipBackwardCommand

The command object for playing a previous point in a media item.

skipForwardCommand

The command object for playing a future point in a media item.

changePlaybackPositionCommand

The command object for changing the playback position in a media item.

Rating a Media Item

ratingCommand

The command object for rating a media item.

likeCommand

The command object for indicating that a user likes what is currently playing.

dislikeCommand

The command object for indicating that a user dislikes what is currently playing.

Bookmarking a Media Item

bookmarkCommand

The command object for indicating that a user wants to remember a media item.

Enabling Language Options

enableLanguageOptionCommand

The command object for enabling a language option.

disableLanguageOptionCommand

The command object for disabling a language option

Relationships

Inherits From

See Also

Setting up the Remote Event Handler

MPRemoteCommand

An object that responds to remote command events.

MPRemoteCommandEvent

A description of a command sent by an external media player.