Contents

LibrarySongs.Attributes

The attributes for a library song resource.

Declaration

object LibrarySongs.Attributes

Properties

NameTypeDescription
albumNamestring

The name of the album the song appears on.

artistName Requiredstring

The artist’s name.

artwork RequiredArtwork

The album artwork.

contentRatingstring

The Recording Industry Association of America (RIAA) rating of the content. The possible values for this rating are clean and explicit. No value means no rating.

discNumberinteger

The disc number the song appears on.

durationInMillis Requiredinteger

The approximate length of the song in milliseconds.

genreNames Required[string]

The genre names the song is associated with.

hasLyrics Requiredboolean

Indicates if the song has lyrics available in the Apple Music catalog. If true, the song has lyrics available; otherwise, it doesn’t.

inFavoritesboolean

Whether the catalog resource ID is in the person’s favorites.

name Requiredstring

The localized name of the song.

playParamsPlayParameters

When present, this attribute indicates that the song is available to play. The value map may be used to initiate playback.

releaseDatestring

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.

trackNumberinteger

The number of the song in the album’s track list.

See Also

Related Objects