MPMediaItemPropertyPersistentID
The key for the persistent identifier for the media item.
Declaration
let MPMediaItemPropertyPersistentID: StringDiscussion
The corresponding value is an NSNumber object that contains 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 property keys
MPMediaItemPropertyAlbumArtistMPMediaItemPropertyAlbumArtistPersistentIDMPMediaItemPropertyAlbumPersistentIDMPMediaItemPropertyAlbumTitleMPMediaItemPropertyArtistMPMediaItemPropertyArtistPersistentIDMPMediaItemPropertyComposerMPMediaItemPropertyComposerPersistentIDMPMediaItemPropertyGenreMPMediaItemPropertyGenrePersistentIDMPMediaItemPropertyHasProtectedAssetMPMediaItemPropertyIsCompilationMPMediaItemPropertyIsCloudItemMPMediaItemPropertyMediaTypeMPMediaItemPropertyPlayCount