Instance Method

valueForProperty:

Retrieves the value for a specified media property key.

Declaration

- (id)valueForProperty:(NSString *)property;

Parameters

property

The media property key that you want the corresponding value of.

Return Value

The value for the media property key.

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.

Use enumerateValuesForProperties:usingBlock: to efficiently access more than one property at a time.

See Also

Working with Media Properties

+ canFilterByProperty:

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

- 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.

MPMediaEntityPersistentID

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