Class

MPMediaEntity

The abstract superclass for media items, media item collections, and media playlist instances.

Declaration

@interface MPMediaEntity : NSObject

Overview

This is the superclass for MPMediaItem and MPMediaItemCollection instances, and in turn for MPMediaPlaylist instances.

Topics

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.

- valueForProperty:

Retrieves the value for a specified media property key.

MPMediaEntityPersistentID

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

Media Entity Property Keys

Media Entity Property Keys

The property keys used to retrieve metadata for media entities.

Relationships

Inherits From

Conforms To

See Also

Media Items and Playlists

MPMediaItem

A collection of properties that represents a single item contained in the media library.

MPMediaItemArtwork

A graphical image, such as music album cover art, associated with a media item.

MPMediaItemCollection

A sorted set of media items from the media library.

MPMediaPlaylist

A playable collection of related media items.

MPMediaPlaylistCreationMetadata

A set of attributes used to describe a playlist when the playlist is first created.