PlaylistEntity


public final class PlaylistEntity extends Entity


An object representing a music playlist.

Summary

Nested types

public final class PlaylistEntity.Builder

Builder class for PlaylistEntity.

Public fields

final Uri

Public methods

Optional<String>

Returns the description of the audio entity, if available

Optional<Long>

Returns the duration of the playlist.

Optional<String>

Returns the id of the entity.

Optional<Uri>

Returns the info page uri of the playlist.

Optional<Long>

Returns the last engagement time in milliseconds.

String

Returns the name of the entity.

Uri

Returns the play back uri of the playlist.

List<Image>

Returns the poster image of the entity.

Optional<Integer>

Returns the percentage progress completed.

Optional<Integer>

Returns the count of the songs in the playlist.

boolean

Returns whether the playlist is downloaded on device or not

boolean

Returns whether the playlist has explicit content or not

Public fields

playBackUri

public final Uri playBackUri

Public methods

getDescription

public Optional<StringgetDescription()

Returns the description of the audio entity, if available

getDurationMillis

public Optional<LonggetDurationMillis()

Returns the duration of the playlist.

getEntityId

public Optional<StringgetEntityId()

Returns the id of the entity.

getInfoPageUri

public Optional<UrigetInfoPageUri()

Returns the info page uri of the playlist.

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 playlist.

getPosterImages

public List<ImagegetPosterImages()

Returns the poster image of the entity.

getProgressPercentComplete

public Optional<IntegergetProgressPercentComplete()

Returns the percentage progress completed.

getSongsCount

public Optional<IntegergetSongsCount()

Returns the count of the songs in the playlist.

isDownloadedOnDevice

public boolean isDownloadedOnDevice()

Returns whether the playlist is downloaded on device or not

isExplicitContent

public boolean isExplicitContent()

Returns whether the playlist has explicit content or not