Global Variable

MPMediaItemPropertyPersistentID

The key for the persistent identifier for the media item.

Declaration

let MPMediaItemPropertyPersistentID: String

Discussion

The corresponding value is an NSNumber object containing a MPMediaEntityPersistentID. The value of the MPMediaItemPropertyPersistentID identifier persists across application launches and across syncs that do not change the sync status of the media item. The value is not guaranteed to persist across a sync/unsync/sync cycle.

Can be used to build a media property predicate as described in MPMediaPropertyPredicate.

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 MPMediaItemPropertyIsCompilation: String

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

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 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.