PlaylistEntity.Builder


public final class PlaylistEntity.Builder


Builder class for PlaylistEntity.

Summary

Public constructors

Public methods

PlaylistEntity.Builder

Add a poster image of the entity.

PlaylistEntity.Builder

Add poster images of the entity.

PlaylistEntity
PlaylistEntity.Builder

Adds the description of the audio entity.

PlaylistEntity.Builder
@CanIgnoreReturnValue
setDownloadedOnDevice(boolean downloadedOnDevice)

Sets a boolean value to indicate if playlist is downloaded on device or not.

PlaylistEntity.Builder

Sets the duration of the music playlist.

PlaylistEntity.Builder

Sets content id of the entity.

PlaylistEntity.Builder
@CanIgnoreReturnValue
setExplicitContent(boolean explicitContent)

Sets a boolean value to indicate if playlist has explicit content or not.

PlaylistEntity.Builder

Sets the info page uri of the music playlist.

PlaylistEntity.Builder
@CanIgnoreReturnValue
setLastEngagementTimeMillis(long lastEngagementTimeMillis)

Sets last engagement time of the entity, in milliseconds since Epoch.

PlaylistEntity.Builder

Sets the name of the entity.

PlaylistEntity.Builder

Sets the play back uri of the music playlist.

PlaylistEntity.Builder
@CanIgnoreReturnValue
setProgressPercentComplete(int progressPercentComplete)

Sets progress percent complete of the audio entity.

PlaylistEntity.Builder

Sets the count of songs in the music playlist.

Public constructors

Builder

public Builder()

Public methods

addPosterImage

@CanIgnoreReturnValue
public PlaylistEntity.Builder addPosterImage(Image image)

Add a poster image of the entity.

Required.

addPosterImages

@CanIgnoreReturnValue
public PlaylistEntity.Builder addPosterImages(List<Image> images)

Add poster images of the entity.

Required.

build

public PlaylistEntity build()

setDescription

@CanIgnoreReturnValue
public PlaylistEntity.Builder setDescription(String description)

Adds the description of the audio entity.

Optional.

setDownloadedOnDevice

@CanIgnoreReturnValue
public PlaylistEntity.Builder setDownloadedOnDevice(boolean downloadedOnDevice)

Sets a boolean value to indicate if playlist is downloaded on device or not.

Optional.

setDurationMillis

@CanIgnoreReturnValue
public PlaylistEntity.Builder setDurationMillis(long durationMillis)

Sets the duration of the music playlist.

Required.

setEntityId

@CanIgnoreReturnValue
public PlaylistEntity.Builder setEntityId(String entityId)

Sets content id of the entity.

Optional.

setExplicitContent

@CanIgnoreReturnValue
public PlaylistEntity.Builder setExplicitContent(boolean explicitContent)

Sets a boolean value to indicate if playlist has explicit content or not.

Optional.

setInfoPageUri

@CanIgnoreReturnValue
public PlaylistEntity.Builder setInfoPageUri(Uri infoPageUri)

Sets the info page uri of the music playlist.

Optional.

setLastEngagementTimeMillis

@CanIgnoreReturnValue
public PlaylistEntity.Builder setLastEngagementTimeMillis(long lastEngagementTimeMillis)

Sets last engagement time of the entity, in milliseconds since Epoch.

Optional.

setName

@CanIgnoreReturnValue
public PlaylistEntity.Builder setName(String name)

Sets the name of the entity.

Required.

setPlayBackUri

@CanIgnoreReturnValue
public PlaylistEntity.Builder setPlayBackUri(Uri playBackUri)

Sets the play back uri of the music playlist.

Required.

setProgressPercentComplete

@CanIgnoreReturnValue
public PlaylistEntity.Builder setProgressPercentComplete(int progressPercentComplete)

Sets progress percent complete of the audio entity.

Optional

setSongsCount

@CanIgnoreReturnValue
public PlaylistEntity.Builder setSongsCount(int songsCount)

Sets the count of songs in the music playlist.

Required.