init(filterPredicates:)
Initializes a media query with a set of media property predicates.
Declaration
init(filterPredicates: Set<MPMediaPredicate>?)Parameters
- filterPredicates:
The set of media property predicates to use as a filter on the library.
Return Value
An initialized media query.
Discussion
MPMediaPropertyPredicate describes how to create media property predicates. The General media item property keys and Podcast Item Property Keys enumerations in MPMediaItem contain the keys you can use to construct predicates.