The repeat modes for the media player.
SDKs
- iOS 3.0+
- Mac Catalyst 13.0+
Framework
- Media Player
Declaration
enum MPMusicRepeatMode : Int
The repeat modes for the media player.
SDKs
Framework
enum MPMusicRepeatMode : Int
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.
var now Playing Item: MPMedia Item?
The currently-playing media item, or the media item, within a queue, that you have designated to begin playback with.
var index Of Now Playing Item: Int
The index of the now playing item in the current playback queue.
var playback State: MPMusic Playback State
The current playback state of the music player.
var repeat Mode: MPMusic Repeat Mode
The current repeat mode of the music player.
var shuffle Mode: MPMusic Shuffle Mode
The current shuffle mode of the music player.
enum MPMusic Playback State
The music player playback state modes.
enum MPMusic Shuffle Mode
The shuffle modes for the media player.