Instance Method

setQueue(with:)

Set the music player's playback queue using media items that fit the queue descriptor properties.

Declaration

func setQueue(with descriptor: MPMusicPlayerQueueDescriptor)

Parameters

descriptor

A queue descriptor used to add media items to the playback queue.

Discussion

To begin playback after establishing a playback queue, call prepareToPlay().

See Also

Setting Up a Playback Queue

func setQueue(with: MPMediaQuery)

Sets a music player’s playback queue based on a media query.

func setQueue(with: MPMediaItemCollection)

Sets a music player’s playback queue using a media item collection.

func setQueue(with: [String])

Sets a music player's playback queue using with media items identified by the store identifiers.