Global Variable

MPMediaItemPropertyIsCompilation

A Boolean value that indicates whether the media item is part of a compilation.

Declaration

NSString *const MPMediaItemPropertyIsCompilation;

Discussion

This property corresponds to the “Part of a compilation” checkbox in the Info tab of the Get Info dialog in iTunes. Its associated value is an NSNumber object representing a Boolean value.

See Also

Filterable by MPMediaPropertyPredicate Queries

MPMediaItemPropertyAlbumArtist

The primary performing artist for an album as a whole.

MPMediaItemPropertyAlbumArtistPersistentID

The persistent identifier for an album artist.

MPMediaItemPropertyAlbumPersistentID

The key for the persistent identifier for an album.

MPMediaItemPropertyAlbumTitle

The title of an album.

MPMediaItemPropertyArtist

The performing artist(s) for a media item—which may vary from the primary artist for the album that a media item belongs to.

MPMediaItemPropertyArtistPersistentID

The key for the persistent identifier for an artist.

MPMediaItemPropertyComposer

The musical composer for the media item.

MPMediaItemPropertyComposerPersistentID

The persistent identifier for a composer.

MPMediaItemPropertyGenre

The musical or film genre of the media item.

MPMediaItemPropertyGenrePersistentID

The persistent identifier for a genre.

MPMediaItemPropertyHasProtectedAsset

A Boolean value indicating the media item is wrapped in DRM and can not be used through a standard playback API.

MPMediaItemPropertyIsCloudItem

A Boolean value indicating whether the media item is an iCloud item.

MPMediaItemPropertyMediaType

The media type of the media item.

MPMediaItemPropertyPersistentID

The key for the persistent identifier for the media item.

MPMediaItemPropertyPlayCount

The number of times the user has played the media item.

MPMediaItemPropertyPodcastPersistentID

The persistent identifier for an audio podcast.

MPMediaItemPropertyPodcastTitle

The title of a podcast.

MPMediaItemPropertyTitle

The title (or name) of the media item.