LibrarySongs.Attributes
The attributes for a library song resource.
Declaration
object LibrarySongs.AttributesProperties
| Name | Type | Description |
|---|---|---|
albumName | string | The name of the album the song appears on. |
artistName Required | string | The artist’s name. |
artwork Required | Artwork | The album artwork. |
contentRating | string | The Recording Industry Association of America (RIAA) rating of the content. The possible values for this rating are |
discNumber | integer | The disc number the song appears on. |
durationInMillis Required | integer | The approximate length of the song in milliseconds. |
genreNames Required | [string] | The genre names the song is associated with. |
hasLyrics Required | boolean | Indicates if the song has lyrics available in the Apple Music catalog. If |
inFavorites | boolean | Whether the catalog resource ID is in the person’s favorites. |
name Required | string | The localized name of the song. |
playParams | PlayParameters | When present, this attribute indicates that the song is available to play. The value map may be used to initiate playback. |
releaseDate | string | The release date of the song, when known, in YYYY-MM-DD or YYYY format. Prerelease songs may have an expected release date in the future. |
trackNumber | integer | The number of the song in the album’s track list. |