Instance Method

initWithItemCollection:

Creates a new queue descriptor using the designated collection.

Declaration

- (instancetype)initWithItemCollection:(MPMediaItemCollection *)itemCollection;

Parameters

itemCollection

The collection of media items used to create the new queue descriptor.

Return Value

A new queue descriptor consisting of the media items contained in the designated collection.

Discussion

After creating a new queue descriptor, you can modify when individual media items start and stop playing, and which item in the queue will play first when playback begins.

See Also

Creating a New Media Item Queue Descriptor

- initWithQuery:

Creates a new queue descriptor using the designated query.