The persistent identifier for an album.
SDKs
- iOS 8.0+
- Mac Catalyst 13.0+
Framework
- Media Player
Declaration
var albumPersistentID: MPMedia Entity Persistent ID { get }
The persistent identifier for an album.
SDKs
Framework
var albumPersistentID: MPMedia Entity Persistent ID { get }
var album Artist: String?
The primary performing artist for an album as a whole.
var album Artist Persistent ID: MPMedia Entity Persistent ID
The persistent identifier for the primary performing artist for an album as a whole.
var album Title: String?
The title of an album, such as “Live On Mars”, as opposed to the title of an individual song on the album, such as “Crater Dance (radio edit)”.
var album Track Count: Int
The number of tracks in the album that contains the media item.
var album Track Number: Int
The track number of the media item, for a media item that is part of an album.
var artist: 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.
var artist Persistent ID: MPMedia Entity Persistent ID
The persistent identifier for an artist.
var artwork: MPMedia Item Artwork?
The artwork image for the media item.
var asset URL: URL?
The URL pointing to the media item.
var beats Per Minute: Int
The number of musical beats per minute for the media item.
var bookmark Time: Time Interval
The user’s place in the media item the most recent time it was played.
var is Cloud Item: Bool
A Boolean value indicating whether the media item is an iCloud Music Library item.
var comments: String?
Textual information about the media item.
var is Compilation: Bool
A Boolean value indicating whether the media item is part of a compilation.
var composer: String?
The musical composer for the media item.
var composer Persistent ID: MPMedia Entity Persistent ID
The persistent identifier for a composer.
var date Added: Date
The date the item was added to the library.
var disc Count: Int
The number of discs in the album that contains the media item.
var disc Number: Int
The disc number of the media item, for a media item that is part of a multi-disc album.
var is Explicit Item: Bool
A Boolean value that indicates whether the item has explicit (adult) lyrics or language.
var genre: String?
The musical or film genre of the media item.
var genre Persistent ID: MPMedia Entity Persistent ID
The persistent identifier for a genre.
var last Played Date: Date?
The date a media item was last played.
var lyrics: String?
The lyrics for the media item.
var media Type: MPMedia Type
The media type of the media item.
var persistent ID: MPMedia Entity Persistent ID
The persistent identifier for the media item.
var play Count: Int
The number of times the user has played the media item.
var playback Duration: Time Interval
The playback duration of the media item.
var playback Store ID: String
The non-library identifier for a media item.
var podcast Persistent ID: MPMedia Entity Persistent ID
The persistent identifier for an audio podcast.
var podcast Title: String?
The title of a podcast, such as “This Martian Drudgery”, as opposed to the title of an individual episode of a podcast such as “Episode 12: Another Cold Day At The Pole”.
var has Protected Asset: Bool
A Boolean indicating whether the media item has a protected asset.
var rating: Int
The user-specified rating of the object in the range [0...5], where a value of 5 indicates the most favorable rating.
var release Date: Date?
The date on which the media item was first publicly released.
var skip Count: Int
The number of times the user has skipped playing the item.
var title: String?
The title (or name) of the media item.
var user Grouping: String?
Grouping information for the media item.