Instance Property

items

An array of media items that match the media query’s predicate.

Declaration

var items: [MPMediaItem]? { get }

Discussion

If no items match the predicate, this method returns an empty array. On error, returns nil.

See Also

Performing Media Queries

var collections: [MPMediaItemCollection]?

An array of media item collections whose contained items match the query’s media property predicate.