albumTitle
TypeScriptget albumTitle(): (string) | nullSwift declarationvar albumTitle: String? { get }The title of the album the song appears on.
struct · iOS 15.0+ · SDK 27.1
struct SongA music item that represents a song.
get albumTitle(): (string) | nullSwift declarationvar albumTitle: String? { get }The title of the album the song appears on.
get artistName(): stringSwift declarationvar artistName: String { get }The artist’s name.
get discNumber(): (number) | nullSwift declarationvar discNumber: Int? { get }The number of the disc the song appears on.
get genreNames(): Array<string>Swift declarationvar genreNames: [String] { get }The names of the song’s associated genres.
get attribution(): (string) | nullSwift declarationvar attribution: String? { get }For classical music only, the name of the artist or composer to attribute to the song.
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 musicVideos(): (MusicItemCollection<MusicVideo>) | nullSwift declarationvar musicVideos: MusicItemCollection<MusicVideo>? { get }The song’s associated music videos.
get releaseDate(): (globalThis.Date) | nullSwift declarationvar releaseDate: Date? { get }The release date (or expected prerelease date) for the song.
get trackNumber(): (number) | nullSwift declarationvar trackNumber: Int? { get }The song’s number in the album’s track list.
get composerName(): (string) | nullSwift declarationvar composerName: String? { get }The name of the song’s composer.
get movementName(): (string) | nullSwift declarationvar movementName: String? { get }For classical music only, the movement name of this song.
get audioVariants(): (Array<AudioVariant>) | nullSwift declarationvar audioVariants: [AudioVariant]? { get }The variants that indicate the quality of audio available for the song.
get contentRating(): (ContentRating) | nullSwift declarationvar contentRating: ContentRating? { get }The rating of the content. A nil value means no rating is available for this song.
get movementCount(): (number) | nullSwift declarationvar movementCount: Int? { get }For classical music only, the movement count of this song.
get previewAssets(): (Array<PreviewAsset>) | nullSwift declarationvar previewAssets: [PreviewAsset]? { get }The preview assets for the song.
get editorialNotes(): (EditorialNotes) | nullSwift declarationvar editorialNotes: EditorialNotes? { get }The editorial notes for the song.
get lastPlayedDate(): (globalThis.Date) | nullSwift declarationvar lastPlayedDate: Date? { get }The date when the user last played the song on this device.
get movementNumber(): (number) | nullSwift declarationvar movementNumber: Int? { get }For classical music only, the movement number of this song.
get playParameters(): (PlayParameters) | nullSwift declarationvar playParameters: PlayParameters? { get }The parameters to use to play the song.
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 song to the library.
get isAppleDigitalMaster(): (boolean) | nullSwift declarationvar isAppleDigitalMaster: Bool? { get }A Boolean value that indicates whether the song is an Apple Digital Master. Apple Digital Masters start from 24-bit files and are optimized to bring the best-sounding audio to Apple products.
get id(): MusicItemIDSwift declarationlet id: MusicItemIDThe unique identifier for the song.
get url(): (string) | nullSwift declarationvar url: URL? { get }The URL for the song.
get isrc(): (string) | nullSwift declarationvar isrc: String? { get }The International Standard Recording Code (ISRC) for the song.
get title(): stringSwift declarationvar title: String { get }The title of the song.
get albums(): (MusicItemCollection<Album>) | nullSwift declarationvar albums: MusicItemCollection<Album>? { get }The song’s associated albums.
get genres(): (MusicItemCollection<Genre>) | nullSwift declarationvar genres: MusicItemCollection<Genre>? { get }The song’s associated genres.
get artists(): (MusicItemCollection<Artist>) | nullSwift declarationvar artists: MusicItemCollection<Artist>? { get }The song’s associated artists.
get artwork(): (Artwork) | nullSwift declarationvar artwork: Artwork? { get }The artwork for the song.
get endTime(): (number) | nullSwift declarationvar endTime: TimeInterval? { get }The custom end time for the song.
get station(): (Station) | nullSwift declarationvar station: Station? { get }The song’s associated station.
get duration(): (number) | nullSwift declarationvar duration: TimeInterval? { get }The duration of the song.
get workName(): (string) | nullSwift declarationvar workName: String? { get }For classical music only, the name of the associated work.
get artistURL(): (string) | nullSwift declarationvar artistURL: URL? { get }The artist’s URL.
get composers(): (MusicItemCollection<Artist>) | nullSwift declarationvar composers: MusicItemCollection<Artist>? { get }The song’s composers.
get hasLyrics(): booleanSwift declarationvar hasLyrics: Bool { get }A Boolean value that indicates whether the song has lyrics available in the catalog. If true, the song has lyrics available; otherwise, it doesn’t.
get playCount(): (number) | nullSwift declarationvar playCount: Int? { get }The number of times the user played the song.
get startTime(): (number) | nullSwift declarationvar startTime: TimeInterval? { get }The custom start time for the song.
No declarations were skipped in this snapshot.