Global Variable

MPMediaItemPropertyIsCompilation

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

Declaration

let MPMediaItemPropertyIsCompilation: String

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

let MPMediaItemPropertyAlbumArtist: String

The primary performing artist for an album as a whole.

let MPMediaItemPropertyAlbumArtistPersistentID: String

The persistent identifier for an album artist.

let MPMediaItemPropertyAlbumPersistentID: String

The key for the persistent identifier for an album.

let MPMediaItemPropertyArtist: String

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

let MPMediaItemPropertyArtistPersistentID: String

The key for the persistent identifier for an artist.

let MPMediaItemPropertyComposer: String

The musical composer for the media item.

let MPMediaItemPropertyComposerPersistentID: String

The persistent identifier for a composer.

let MPMediaItemPropertyGenre: String

The musical or film genre of the media item.

let MPMediaItemPropertyGenrePersistentID: String

The persistent identifier for a genre.

let MPMediaItemPropertyHasProtectedAsset: String

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

let MPMediaItemPropertyIsCloudItem: String

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

let MPMediaItemPropertyMediaType: String

The media type of the media item.

let MPMediaItemPropertyPersistentID: String

The key for the persistent identifier for the media item.

let MPMediaItemPropertyPlayCount: String

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

let MPMediaItemPropertyPodcastPersistentID: String

The persistent identifier for an audio podcast.

let MPMediaItemPropertyTitle: String

The title (or name) of the media item.