MusicTrackEntity.Builder


class MusicTrackEntity.Builder


Builder class for MusicTrackEntity.

Summary

Public constructors

Public functions

MusicTrackEntity.Builder!

Adds artist of the music track.

MusicTrackEntity.Builder!

Adds the list of artists of the music track.

MusicTrackEntity.Builder!

Add a poster image of the entity.

MusicTrackEntity.Builder!

Add poster images of the entity.

MusicTrackEntity!
MusicTrackEntity.Builder!

Sets the name of the music album of the music track.

MusicTrackEntity.Builder!

Adds the description of the audio entity.

MusicTrackEntity.Builder!

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

MusicTrackEntity.Builder!

Sets the duration of the music track.

MusicTrackEntity.Builder!

Sets content id of the entity.

MusicTrackEntity.Builder!

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

MusicTrackEntity.Builder!

Sets the info page uri of the music track.

MusicTrackEntity.Builder!

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

MusicTrackEntity.Builder!

Sets the name of the entity.

MusicTrackEntity.Builder!

Sets the play back uri of the music track.

MusicTrackEntity.Builder!

Sets progress percent complete of the audio entity.

Public constructors

Builder

Builder()

Public functions

addArtist

@CanIgnoreReturnValue
fun addArtist(artist: String!): MusicTrackEntity.Builder!

Adds artist of the music track.

Required.

addArtists

@CanIgnoreReturnValue
fun addArtists(artists: (Mutable)List<String!>!): MusicTrackEntity.Builder!

Adds the list of artists of the music track.

Required.

addPosterImage

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

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

build

fun build(): MusicTrackEntity!

setAlbum

@CanIgnoreReturnValue
fun setAlbum(album: String!): MusicTrackEntity.Builder!

Sets the name of the music album of the music track.

Optional.

setDescription

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

Adds the description of the audio entity.

Optional.

setDownloadedOnDevice

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

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

Optional.

setDurationMillis

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

Sets the duration of the music track.

Optional.

setEntityId

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

Sets content id of the entity.

Optional.

setExplicitContent

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

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

Optional.

setInfoPageUri

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

Sets the info page uri of the music track.

Optional.

setLastEngagementTimeMillis

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

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

Optional.

setName

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

Sets the name of the entity.

Required.

setPlayBackUri

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

Sets the play back uri of the music track.

Required.

setProgressPercentComplete

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

Sets progress percent complete of the audio entity.

Optional