Lyrics

data class Lyrics(val id: String, val title: String, val subtitle: String? = null, val lyrics: Lyrics.Lyric? = null, val extras: Map<String, String> = emptyMap())

Represents lyrics of a song, can be loaded later in LyricsClient.loadLyrics.

See also

Constructors

Link copied to clipboard
constructor(id: String, title: String, subtitle: String? = null, lyrics: Lyrics.Lyric? = null, extras: Map<String, String> = emptyMap())

Types

Link copied to clipboard
data class Item(val text: String, val startTime: Long, val endTime: Long)

Represents a timed lyric item.

Link copied to clipboard
sealed class Lyric

Represents a lyric of a song.

Link copied to clipboard
data class Simple(val text: String) : Lyrics.Lyric

Represents a simple lyric of a song.

Link copied to clipboard
data class Timed(val list: List<Lyrics.Item>, val fillTimeGaps: Boolean = true) : Lyrics.Lyric

Represents a timed lyric of a song.

Link copied to clipboard
data class WordByWord(val list: List<List<Lyrics.Item>>, val fillTimeGaps: Boolean = true) : Lyrics.Lyric

Represents a word-by-word lyric of a song.

Properties

Link copied to clipboard

additional information about the lyrics.

Link copied to clipboard
val id: String

the unique identifier of the lyrics.

Link copied to clipboard
val lyrics: Lyrics.Lyric? = null

the lyrics of the song.

Link copied to clipboard
val subtitle: String? = null

the subtitle of the lyrics.

Link copied to clipboard

the title of the lyrics.