MusicTrackEntity


public final class MusicTrackEntity extends Entity


An object representing a music track.

Summary

Nested types

public final class MusicTrackEntity.Builder

Builder class for MusicTrackEntity.

Public fields

final Uri

Public methods

Optional<String>

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

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.

Uri

Returns the play back uri of the music track.

List<Image>

Returns the poster image of the entity.

Optional<Integer>

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 fields

playBackUri

public final Uri playBackUri

Public methods

getAlbum

public Optional<StringgetAlbum()

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

getArtists

public List<StringgetArtists()

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

getDescription

public Optional<StringgetDescription()

Returns the description of the audio entity, if available

getDurationMillis

public Optional<LonggetDurationMillis()

Returns the duration of the music track.

getEntityId

public Optional<StringgetEntityId()

Returns the id of the entity.

getInfoPageUri

public Optional<UrigetInfoPageUri()

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

getLastEngagementTimeMillis

public Optional<LonggetLastEngagementTimeMillis()

Returns the last engagement time in milliseconds.

getName

public String getName()

Returns the name of the entity.

getPlayBackUri

public Uri getPlayBackUri()

Returns the play back uri of the music track.

getPosterImages

public List<ImagegetPosterImages()

Returns the poster image of the entity.

getProgressPercentComplete

public Optional<IntegergetProgressPercentComplete()

Returns the percentage progress completed.

isDownloadedOnDevice

public boolean isDownloadedOnDevice()

Returns whether the music track is downloaded on device or not

isExplicitContent

public boolean isExplicitContent()

Returns whether the music track has explicit content or not