canFilter(byProperty:)
Indicates whether you can use the media property key that you specify to construct a media property predicate.
Declaration
class func canFilter(byProperty property: String) -> BoolParameters
- property:
The key for the media property that you want to examine.
Return Value
true if the property you are testing can be used to construct a media property predicate of type MPMediaPropertyPredicate; otherwise, false.
Discussion
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.