PlaylistEntity.Builder


class PlaylistEntity.Builder


Builder class for PlaylistEntity.

Summary

Public constructors

Public functions

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!

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!

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!

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!

Sets progress percent complete of the audio entity.

PlaylistEntity.Builder!

Sets the count of songs in the music playlist.

Public constructors

Builder

Builder()

Public functions

addPosterImage

@CanIgnoreReturnValue
fun addPosterImage(image: Image!): PlaylistEntity.Builder!

Add a poster image of the entity.

Required.

addPosterImages

@CanIgnoreReturnValue
fun addPosterImages(images: (Mutable)List<Image!>!): PlaylistEntity.Builder!

Add poster images of the entity.

Required.

build

fun build(): PlaylistEntity!

setDescription

@CanIgnoreReturnValue
fun setDescription(description: String!): PlaylistEntity.Builder!

Adds the description of the audio entity.

Optional.

setDownloadedOnDevice

@CanIgnoreReturnValue
fun setDownloadedOnDevice(downloadedOnDevice: Boolean): PlaylistEntity.Builder!

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

Optional.

setDurationMillis

@CanIgnoreReturnValue
fun setDurationMillis(durationMillis: Long): PlaylistEntity.Builder!

Sets the duration of the music playlist.

Required.

setEntityId

@CanIgnoreReturnValue
fun setEntityId(entityId: String!): PlaylistEntity.Builder!

Sets content id of the entity.

Optional.

setExplicitContent

@CanIgnoreReturnValue
fun setExplicitContent(explicitContent: Boolean): PlaylistEntity.Builder!

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

Optional.

setInfoPageUri

@CanIgnoreReturnValue
fun setInfoPageUri(infoPageUri: Uri!): PlaylistEntity.Builder!

Sets the info page uri of the music playlist.

Optional.

setLastEngagementTimeMillis

@CanIgnoreReturnValue
fun setLastEngagementTimeMillis(lastEngagementTimeMillis: Long): PlaylistEntity.Builder!

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

Optional.

setName

@CanIgnoreReturnValue
fun setName(name: String!): PlaylistEntity.Builder!

Sets the name of the entity.

Required.

setPlayBackUri

@CanIgnoreReturnValue
fun setPlayBackUri(playBackUri: Uri!): PlaylistEntity.Builder!

Sets the play back uri of the music playlist.

Required.

setProgressPercentComplete

@CanIgnoreReturnValue
fun setProgressPercentComplete(progressPercentComplete: Int): PlaylistEntity.Builder!

Sets progress percent complete of the audio entity.

Optional

setSongsCount

@CanIgnoreReturnValue
fun setSongsCount(songsCount: Int): PlaylistEntity.Builder!

Sets the count of songs in the music playlist.

Required.