Type Property

MPMusicPlayerControllerNowPlayingItemDidChange

Posted when the currently playing media item has changed.

Declaration

static let MPMusicPlayerControllerNowPlayingItemDidChange: NSNotification.Name

Discussion

The object associated with the notification is the music player whose now-playing item changed. The notification has no userInfo dictionary.

See Also

Using Music Player Notifications

func beginGeneratingPlaybackNotifications()

Starts the generation of playback notifications.

func endGeneratingPlaybackNotifications()

Ends the generation of playback notifications.

static let MPMusicPlayerControllerPlaybackStateDidChange: NSNotification.Name

Posted when the playback state has been changed programmatically or by user action.

static let MPMusicPlayerControllerVolumeDidChange: NSNotification.Name

Posted when the audio playback volume for the music player has changed.