MPMediaPropertyPredicate
A set of predicates for defining a filter in a media query.
Declaration
class MPMediaPropertyPredicateOverview
Use one or more MPMediaPropertyPredicate objects to define the filter in a media query to retrieve a subset of media items from the Music library. A predicate in this context is a statement of a logical condition that you want to test each media item against. The query retrieves the items that satisfy that condition.
You define Music library queries, and retrieve query results, using the MPMediaQuery class. MPMediaItem and MPMediaItemCollection describe the media items and media item collections that you can retrieve with a query.