One Logo Pool Ball
MusicKit · IOS API REFERENCE

Playlist.Entry.Item

enum · iOS 16.0+ · SDK 27.1

enum Item

An item that corresponds to an entry in a playlist.

Members (20)

get · iOS 16.0+

albumTitle

TypeScript
get albumTitle(): (string) | null
Swift declaration
var albumTitle: String? { get }

The title of the album the playlist entry’s item appears on.

get · iOS 16.0+

artistName

TypeScript
get artistName(): string
Swift declaration
var artistName: String { get }

The artist’s name.

get · iOS 16.0+

genreNames

TypeScript
get genreNames(): Array<string>
Swift declaration
var genreNames: [String] { get }

The names of the playlist entry’s item associated genres.

get · iOS 16.0+

description

TypeScript
get description(): string
Swift declaration
var description: String { get }

A textual representation of this instance. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(describing:)` initializer. This initializer works with any type, and uses the custom `description` property for types that conform to `CustomStringConvertible`: struct Point: CustomStringConvertible { let x: Int, y: Int var description: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(describing: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `description` property.

get · iOS 16.0+

releaseDate

TypeScript
get releaseDate(): (globalThis.Date) | null
Swift declaration
var releaseDate: Date? { get }

The release date of the playlist entry’s item.

get · iOS 16.0+

contentRating

TypeScript
get contentRating(): (ContentRating) | null
Swift declaration
var contentRating: ContentRating? { get }

The rating of the content. A nil value means no rating is available for this playlist entry’s item.

get · iOS 16.0+

previewAssets

TypeScript
get previewAssets(): (Array<PreviewAsset>) | null
Swift declaration
var previewAssets: [PreviewAsset]? { get }

The preview assets for the playlist entry’s item.

get · iOS 16.0+

editorialNotes

TypeScript
get editorialNotes(): (EditorialNotes) | null
Swift declaration
var editorialNotes: EditorialNotes? { get }

The editorial notes for the playlist entry’s item.

get · iOS 16.0+

lastPlayedDate

TypeScript
get lastPlayedDate(): (globalThis.Date) | null
Swift declaration
var lastPlayedDate: Date? { get }

The date when the user last played the playlist entry’s item on this device.

get · iOS 16.0+

playParameters

TypeScript
get playParameters(): (PlayParameters) | null
Swift declaration
var playParameters: PlayParameters? { get }

The parameters to use to play the playlist entry’s item.

get · iOS 16.0+

debugDescription

TypeScript
get debugDescription(): string
Swift declaration
var debugDescription: String { get }

A textual representation of this instance, suitable for debugging. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(reflecting:)` initializer. This initializer works with any type, and uses the custom `debugDescription` property for types that conform to `CustomDebugStringConvertible`: struct Point: CustomDebugStringConvertible { let x: Int, y: Int var debugDescription: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(reflecting: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `debugDescription` property.

get · iOS 16.0+

libraryAddedDate

TypeScript
get libraryAddedDate(): (globalThis.Date) | null
Swift declaration
var libraryAddedDate: Date? { get }

The date when the user added the playlist entry’s item to the library.

get · iOS 16.0+

id

TypeScript
get id(): MusicItemID
Swift declaration
var id: MusicItemID { get }

The unique identifier for the playlist entry item.

get · iOS 16.0+

url

TypeScript
get url(): (string) | null
Swift declaration
var url: URL? { get }

The URL for the playlist entry’s item.

get · iOS 16.0+

isrc

TypeScript
get isrc(): (string) | null
Swift declaration
var isrc: String? { get }

The International Standard Recording Code (ISRC) for the playlist entry’s item.

get · iOS 16.0+

title

TypeScript
get title(): string
Swift declaration
var title: String { get }

The title of the playlist entry’s item.

get · iOS 16.0+

artwork

TypeScript
get artwork(): (Artwork) | null
Swift declaration
var artwork: Artwork? { get }

The artwork for the playlist entry’s item.

get · iOS 16.0+

duration

TypeScript
get duration(): (number) | null
Swift declaration
var duration: TimeInterval? { get }

The duration of the playlist entry’s item.

get · iOS 16.0+

artistURL

TypeScript
get artistURL(): (string) | null
Swift declaration
var artistURL: URL? { get }

The artist’s URL.

get · iOS 16.0+

playCount

TypeScript
get playCount(): (number) | null
Swift declaration
var playCount: Int? { get }

The number of times the user played the playlist entry’s item.

Skipped declarations

No declarations were skipped in this snapshot.

All MusicKit types →