albumTitle
TypeScriptget albumTitle(): (string) | nullSwift declarationvar albumTitle: String? { get }The title of the album the playlist entry appears on.
struct · iOS 16.0+ · SDK 27.1
struct EntryA music item that represents a playlist entry.
get albumTitle(): (string) | nullSwift declarationvar albumTitle: String? { get }The title of the album the playlist entry appears on.
get artistName(): stringSwift declarationvar artistName: String { get }The artist’s name.
get genreNames(): Array<string>Swift declarationvar genreNames: [String] { get }The names of the playlist entry’s associated genres.
get description(): stringSwift declarationvar 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 releaseDate(): (globalThis.Date) | nullSwift declarationvar releaseDate: Date? { get }The release date (or expected for pre-release) of the playlist entry.
get contentRating(): (ContentRating) | nullSwift declarationvar contentRating: ContentRating? { get }The rating of the content. A nil value means no rating is available for this playlist entry.
get previewAssets(): (Array<PreviewAsset>) | nullSwift declarationvar previewAssets: [PreviewAsset]? { get }The preview assets for the playlist entry.
get editorialNotes(): (EditorialNotes) | nullSwift declarationvar editorialNotes: EditorialNotes? { get }The editorial notes for the playlist entry.
get lastPlayedDate(): (globalThis.Date) | nullSwift declarationvar lastPlayedDate: Date? { get }The date when the user last played the playlist entry on this device.
get playParameters(): (PlayParameters) | nullSwift declarationvar playParameters: PlayParameters? { get }The parameters to use to play the playlist entry.
get debugDescription(): stringSwift declarationvar 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 libraryAddedDate(): (globalThis.Date) | nullSwift declarationvar libraryAddedDate: Date? { get }The date when the user added the playlist entry to the library.
get id(): MusicItemIDSwift declarationlet id: MusicItemIDThe unique identifier for the playlist entry.
get url(): (string) | nullSwift declarationvar url: URL? { get }The URL for the playlist entry.
get isrc(): (string) | nullSwift declarationvar isrc: String? { get }The International Standard Recording Code (ISRC) for the playlist entry.
get item(): (Playlist_Entry_Item) | nullSwift declarationvar item: Playlist.Entry.Item? { get }The item of the playlist entry.
get title(): stringSwift declarationvar title: String { get }The title of the playlist entry.
get artwork(): (Artwork) | nullSwift declarationvar artwork: Artwork? { get }The artwork of the playlist entry.
get duration(): (number) | nullSwift declarationvar duration: TimeInterval? { get }The duration of the playlist entry.
get position(): numberSwift declarationvar position: Int { get }The position of the playlist entry.
get artistURL(): (string) | nullSwift declarationvar artistURL: URL? { get }The artist’s URL.
get playCount(): (number) | nullSwift declarationvar playCount: Int? { get }The number of times the user played the playlist entry.
No declarations were skipped in this snapshot.