MusicAlbumEntity.Builder


class MusicAlbumEntity.Builder


Builder class for MusicAlbumEntity.

Summary

Public constructors

Public functions

MusicAlbumEntity.Builder!

Adds artist of the music album.

MusicAlbumEntity.Builder!

Adds the list of artists of the music album.

MusicAlbumEntity.Builder!

Adds genre of the music album.

MusicAlbumEntity.Builder!

Adds the list of genres of the music album.

MusicAlbumEntity.Builder!

Adds music label of the music album.

MusicAlbumEntity.Builder!

Adds the list of music labels of the music album.

MusicAlbumEntity.Builder!

Add a poster image of the entity.

MusicAlbumEntity.Builder!

Add poster images of the entity.

MusicAlbumEntity!
MusicAlbumEntity.Builder!

Adds the description of the audio entity.

MusicAlbumEntity.Builder!

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

MusicAlbumEntity.Builder!

Sets the duration of the music album.

MusicAlbumEntity.Builder!

Sets content id of the entity.

MusicAlbumEntity.Builder!

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

MusicAlbumEntity.Builder!

Sets the info page uri of the music album.

MusicAlbumEntity.Builder!

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

MusicAlbumEntity.Builder!

Sets a music album type

MusicAlbumEntity.Builder!

Sets the name of the entity.

MusicAlbumEntity.Builder!

Sets the playback uri of the music album.

MusicAlbumEntity.Builder!

Sets progress percent complete of the audio entity.

MusicAlbumEntity.Builder!

Sets the release date of the music album in epoch milliseconds.

MusicAlbumEntity.Builder!

Sets the count of the songs in the music album.

Public constructors

Builder

Builder()

Public functions

addArtist

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

Adds artist of the music album.

Required.

addArtists

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

Adds the list of artists of the music album.

Required.

addGenre

@CanIgnoreReturnValue
fun addGenre(genre: String!): MusicAlbumEntity.Builder!

Adds genre of the music album.

Optional.

addGenres

@CanIgnoreReturnValue
fun addGenres(genres: (Mutable)List<String!>!): MusicAlbumEntity.Builder!

Adds the list of genres of the music album.

Optional.

addMusicLabel

@CanIgnoreReturnValue
fun addMusicLabel(musicLabel: String!): MusicAlbumEntity.Builder!

Adds music label of the music album.

Optional.

addMusicLabels

@CanIgnoreReturnValue
fun addMusicLabels(musicLabels: (Mutable)List<String!>!): MusicAlbumEntity.Builder!

Adds the list of music labels of the music album.

Optional.

addPosterImage

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

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

build

fun build(): MusicAlbumEntity!

setDescription

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

Adds the description of the audio entity.

Optional.

setDownloadedOnDevice

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

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

Optional.

setDurationMillis

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

Sets the duration of the music album.

Optional.

setEntityId

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

Sets content id of the entity.

Optional.

setExplicitContent

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

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

Optional.

setInfoPageUri

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

Sets the info page uri of the music album.

Required.

setLastEngagementTimeMillis

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

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

Optional.

setMusicAlbumType

@CanIgnoreReturnValue
fun setMusicAlbumType(@MusicAlbumType musicAlbumType: Int): MusicAlbumEntity.Builder!

Sets a music album type

Optional.

setName

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

Sets the name of the entity.

Required.

setPlayBackUri

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

Sets the playback uri of the music album.

Optional.

setProgressPercentComplete

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

Sets progress percent complete of the audio entity.

Optional

setReleaseDateEpochMillis

@CanIgnoreReturnValue
fun setReleaseDateEpochMillis(releaseDateEpochMillis: Long): MusicAlbumEntity.Builder!

Sets the release date of the music album in epoch milliseconds.

Optional.

setSongsCount

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

Sets the count of the songs in the music album.

Optional.