song

std

A provider-agnostic piece of music that can be interacted with through service providers.

Extension Functions

native fun getAlbum() on song link

Gets the Album the song is on.

Returns Album

The album of the song

native fun getAllArtists() on song link

Gets all Artist entities on the song.

Returns list

A list of artists on the song

native fun getArtist() on song link

Gets the Artist entity of the primary artist on the song

Returns Artist

The first artist of a song

native fun getDuration() on song link

Gets the duration of the song in milliseconds.

Returns int

The duration of the song

native fun getId() on song link

Gets the ID of the song. This is an ID identifiable by the provider which owns this song.

Returns string

The ID of the song

native fun getTitle() on song link

Gets the name of the song.

Returns string

The name of the song

native fun getUrl() on song link

Gets the URL of the song. If it was not defined with a URL, an empty string is returned.

Returns string

The URL of the song