value(forProperty:)
Retrieves the value for a specified media property key.
Declaration
func value(forProperty property: String) -> Any?Parameters
- property:
The media property key that you want the corresponding value of.
Return Value
The value for the media property key.
Discussion
Use enumerateValues(forProperties:using:) to efficiently access more than one property at a time.
To see which media property keys you can use with this method, refer to Media entity property keys, General media item property keys, Playlist property keys, and User-defined property keys.