MusicTrackEntity


class MusicTrackEntity : Entity


An object representing a music track.

Summary

Nested types

Builder class for MusicTrackEntity.

Public functions

Optional<String!>!

Returns the album of the music track, if it belongs to one.

(Mutable)List<String!>!

Returns the list of artists of the music track, if available.

Optional<String!>!

Returns the description of the audio entity, if available

Optional<Long!>!

Returns the duration of the music track.

Optional<String!>!

Returns the id of the entity.

Optional<Uri!>!

Returns the info page uri of the music track, if available.

Optional<Long!>!

Returns the last engagement time in milliseconds.

String!

Returns the name of the entity.

(Mutable)List<Image!>!

Returns the poster image of the entity.

Optional<Int!>!

Returns the percentage progress completed.

Boolean

Returns whether the music track is downloaded on device or not

Boolean

Returns whether the music track has explicit content or not

Public properties

Uri!

Public functions

getAlbum

fun getAlbum(): Optional<String!>!

Returns the album of the music track, if it belongs to one.

getArtists

fun getArtists(): (Mutable)List<String!>!

Returns the list of artists of the music track, if available.

getDescription

fun getDescription(): Optional<String!>!

Returns the description of the audio entity, if available

getDurationMillis

fun getDurationMillis(): Optional<Long!>!

Returns the duration of the music track.

getEntityId

fun getEntityId(): Optional<String!>!

Returns the id of the entity.

getInfoPageUri

fun getInfoPageUri(): Optional<Uri!>!

Returns the info page uri of the music track, if available.

getLastEngagementTimeMillis

fun getLastEngagementTimeMillis(): Optional<Long!>!

Returns the last engagement time in milliseconds.

getName

fun getName(): String!

Returns the name of the entity.

getPosterImages

fun getPosterImages(): (Mutable)List<Image!>!

Returns the poster image of the entity.

getProgressPercentComplete

fun getProgressPercentComplete(): Optional<Int!>!

Returns the percentage progress completed.

isDownloadedOnDevice

fun isDownloadedOnDevice(): Boolean

Returns whether the music track is downloaded on device or not

isExplicitContent

fun isExplicitContent(): Boolean

Returns whether the music track has explicit content or not

Public properties

playBackUri

val playBackUriUri!