A collection of properties that represents a single item contained in the media library.
- iOS 3.0+
A media item has an overall unique identifier, accessed using the
MPMedia property key, as well as specific identifiers for its metadata. These identifiers persists across application launches.
A media item can have a wide range of metadata associated with it. You access this metadata using the
value(for method along with the property keys described in this document. You can also access metadata in a batch fashion using the
enumerate method. Anytime the app accesses more than one property, enumerating over a set of property keys is more efficient than fetching each individual property. Both of these methods are defined in
MPMedia, the abstract superclass of
MPMedia, and described in
You use attributes of media items to build media queries for searching the Media library. These attributes are described in
MPMedia, General Media Item Property Keys, and Podcast Item Property Keys. In addition, the
MPMedia property is described in Media Entity Property Keys. Media queries are described in