Type Method

canFilterByProperty:

Indicates if a media property key can be used to construct a media property predicate.

Declaration

+ (BOOL)canFilterByProperty:(NSString *)property;

Parameters

property

The key for the media property that you want to examine.

Return Value

YES if the property you are testing can be used to construct a media property predicate (of type MPMediaPropertyPredicate); otherwise, NO.

Discussion

The media property keys you can use with this property are listed in this document and in General Media Item Property Keys, Podcast Item Property Keys, Playlist Property Keys, and User-Defined Property Keys.

See Also

Working with Media Properties

- enumerateValuesForProperties:usingBlock:

Executes a provided block with the fetched values for the given item properties.

persistentID

The persistent identifier for a media entity.

- objectForKeyedSubscript:

Returns the object specified by the key.

- valueForProperty:

Retrieves the value for a specified media property key.

MPMediaEntityPersistentID

Defines the type for storing a persistent identifier to a particular entity.