currentEntry
TypeScriptget currentEntry(): (MusicPlayer_Queue_Entry) | nullSwift declarationvar currentEntry: MusicPlayer.Queue.Entry? { get set }The currently active entry in the playback queue.
class · iOS 15.0+ · SDK 27.1
class QueueA representation of the playback queue for a music player.
get currentEntry(): (MusicPlayer_Queue_Entry) | nullSwift declarationvar currentEntry: MusicPlayer.Queue.Entry? { get set }The currently active entry in the playback queue.
set currentEntry(value: (MusicPlayer_Queue_Entry) | null)Swift declarationvar currentEntry: MusicPlayer.Queue.Entry? { get set }The currently active entry in the playback queue.
get objectWillChange(): _Combine_AnyPublisher<void, never>Swift declarationvar objectWillChange: AnyPublisher<Void, Never> { get }A publisher that emits before the object has changed.
get affectsListeningHistory(): booleanSwift declarationvar affectsListeningHistory: Bool { get set }A Boolean value that indicates whether this playing this queue will affect the user’s listening history. Defaults to `true`. If `false`, or the user has Settings > Music > Use Listening History set to off, this queue will not show up in the Music app’s Recently Played.
set affectsListeningHistory(value: boolean)Swift declarationvar affectsListeningHistory: Bool { get set }A Boolean value that indicates whether this playing this queue will affect the user’s listening history. Defaults to `true`. If `false`, or the user has Settings > Music > Use Listening History set to off, this queue will not show up in the Music app’s Recently Played.
static initAlbumStartingAt(album: Album, startTrack: Track): MusicPlayer_QueueSwift declarationrequired init(album: Album, startingAt startTrack: Track)Creates a playback queue with an album and a specific track for the player to start playback.
insertPosition(entry: MusicPlayer_Queue_Entry, position: MusicPlayer_Queue_EntryInsertionPosition): Promise<void>Swift declarationfunc insert(_ entry: MusicPlayer.Queue.Entry, position: MusicPlayer.Queue.EntryInsertionPosition) async throwsInserts an entry into the playback queue.
insertPosition19337(entries: Array<MusicPlayer_Queue_Entry>, position: MusicPlayer_Queue_EntryInsertionPosition): Promise<void>Swift declarationfunc insert<S>(_ entries: S, position: MusicPlayer.Queue.EntryInsertionPosition) async throws where S : Sequence, S.Element == MusicPlayer.Queue.EntryInserts entries into the playback queue.
static initPlaylistStartingAt(playlist: Playlist, startPlaylistEntry: Playlist_Entry): MusicPlayer_QueueSwift declarationrequired init(playlist: Playlist, startingAt startPlaylistEntry: Playlist.Entry)Creates a playback queue with a playlist and a specific playlist entry for the player to start playback.
static initStartingAt(entries: Array<MusicPlayer_Queue_Entry>, startEntry?: (MusicPlayer_Queue_Entry) | null): MusicPlayer_QueueSwift declarationrequired init<S>(_ entries: S, startingAt startEntry: S.Element? = nil) where S : Sequence, S.Element == MusicPlayer.Queue.EntryCreates a playback queue with playback queue entries.
4 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MusicPlayer.Queue.init(for:startingAt:)
This declaration needs Swift generic type arguments. (no canonical witness for S)
MusicPlayer.Queue.insert(_:position:)
This declaration needs Swift generic type arguments. (no canonical witness for S)
MusicPlayer.Queue.insert(_:position:)
This declaration needs Swift generic type arguments. (no canonical witness for PlayableMusicItemType)
MusicPlayer.Queue.init(arrayLiteral:)
A variable number of Swift arguments is not supported.