Type Method

collectionWithItems:

Creates a media item collection by copying an array of media items.

Declaration

+ (MPMediaItemCollection *)collectionWithItems:(NSArray<MPMediaItem *> *)items;

Parameters

items

The array of media items you are assigning to the media item collection.

Return Value

A media item collection.

See Also

Creating a Media Item Collection

- initWithItems:

Initializes a media item collection with an array of media items.