Enumeration

MPMusicRepeatMode

The repeat modes for the media player.

Declaration

enum MPMusicRepeatMode : Int

Topics

Constants

case `default`

The user’s preferred repeat mode.

case none

The music player will not repeat the current song or playlist.

case one

The music player will repeat the current song.

case all

The music player will repeat the current playlist.

See Also

Managing Playback Mode and State

var nowPlayingItem: MPMediaItem?

The currently-playing media item, or the media item, within a queue, that you have designated to begin playback with.

var indexOfNowPlayingItem: Int

The index of the now playing item in the current playback queue.

var playbackState: MPMusicPlaybackState

The current playback state of the music player.

var repeatMode: MPMusicRepeatMode

The current repeat mode of the music player.

var shuffleMode: MPMusicShuffleMode

The current shuffle mode of the music player.

enum MPMusicPlaybackState

The music player playback state modes.

enum MPMusicShuffleMode

The shuffle modes for the media player.