repeatMode
TypeScriptget repeatMode(): (MusicPlayer_RepeatMode) | nullSwift declarationvar repeatMode: MusicPlayer.RepeatMode? { get set }The current repeat mode of the music player. Defaults to `nil`.
class · iOS 15.0+ · SDK 27.1
class StateAn object that exposes the observable properties of a music player.
get repeatMode(): (MusicPlayer_RepeatMode) | nullSwift declarationvar repeatMode: MusicPlayer.RepeatMode? { get set }The current repeat mode of the music player. Defaults to `nil`.
set repeatMode(value: (MusicPlayer_RepeatMode) | null)Swift declarationvar repeatMode: MusicPlayer.RepeatMode? { get set }The current repeat mode of the music player. Defaults to `nil`.
get shuffleMode(): (MusicPlayer_ShuffleMode) | nullSwift declarationvar shuffleMode: MusicPlayer.ShuffleMode? { get set }The current shuffle mode of the music player. Defaults to `nil`.
set shuffleMode(value: (MusicPlayer_ShuffleMode) | null)Swift declarationvar shuffleMode: MusicPlayer.ShuffleMode? { get set }The current shuffle mode of the music player. Defaults to `nil`.
get audioVariant(): (AudioVariant) | nullSwift declarationvar audioVariant: AudioVariant? { get }The active variant that indicates the quality of audio for the current entry.
get playbackRate(): numberSwift declarationvar playbackRate: Float { get set }The current playback rate for the player. This value represents a multiplier for the default playback rate of the current entry. A value of `0.0` indicates that the entry isn’t playing, and a value of `1.0` indicates that it’s playing at normal speed. Positive values indicate forward playback, and negative values indicate reverse playback. Setting the value of this property changes the playback rate accordingly.
set playbackRate(value: number)Swift declarationvar playbackRate: Float { get set }The current playback rate for the player. This value represents a multiplier for the default playback rate of the current entry. A value of `0.0` indicates that the entry isn’t playing, and a value of `1.0` indicates that it’s playing at normal speed. Positive values indicate forward playback, and negative values indicate reverse playback. Setting the value of this property changes the playback rate accordingly.
get playbackStatus(): MusicPlayer_PlaybackStatusSwift declarationvar playbackStatus: MusicPlayer.PlaybackStatus { get }The current playback status of the music player.
get objectWillChange(): _Combine_AnyPublisher<void, never>Swift declarationvar objectWillChange: AnyPublisher<Void, Never> { get }A publisher that emits before the object has changed.
No declarations were skipped in this snapshot.