Instance Method

setQueueWithItemCollection:

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

Declaration

- (void)setQueueWithItemCollection:(MPMediaItemCollection *)itemCollection;

Parameters

itemCollection

A media item collection that you want as the playback queue. See MPMediaItemCollection for a description of media item collections and how to use them.

Discussion

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

See Also

Setting Up a Playback Queue

- setQueueWithQuery:

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

- setQueueWithStoreIDs:

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

- setQueueWithDescriptor:

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