Contents

enumerateValues(forProperties:using:)

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

Declaration

func enumerateValues(forProperties properties: Set<String>?, using block: @escaping (String, Any, UnsafeMutablePointer<ObjCBool>) -> Void)

Parameters

  • properties:

    A set of keys for the properties to enumerate, or nil to enumerate all properties. Takes Media Item Properties and Playlist Properties from Itlibmediaitem.

  • block:

    A block object that executes for each property in the properties set.

Discussion

Use this method to get property values in a batch fashion. In some cases, enumerating over a set of property keys can be more efficient than fetching each individual property with value(forProperty:).

See Also

Getting Media Item Properties