MusicTrackEntity.Builder

public final class MusicTrackEntity.Builder


Builder class for MusicTrackEntity.

Summary

Public constructors

Public methods

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
@CanIgnoreReturnValue
setDownloadedOnDevice(boolean downloadedOnDevice)

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
@CanIgnoreReturnValue
setExplicitContent(boolean explicitContent)

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
@CanIgnoreReturnValue
setLastEngagementTimeMillis(long lastEngagementTimeMillis)

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
@CanIgnoreReturnValue
setProgressPercentComplete(int progressPercentComplete)

Sets progress percent complete of the audio entity.

Public constructors

Builder

public Builder()

Public methods

addArtist

@CanIgnoreReturnValue
public MusicTrackEntity.Builder addArtist(String artist)

Adds artist of the music track.

Required.

addArtists

@CanIgnoreReturnValue
public MusicTrackEntity.Builder addArtists(List<String> artists)

Adds the list of artists of the music track.

Required.

addPosterImage

@CanIgnoreReturnValue
public MusicTrackEntity.Builder addPosterImage(Image image)

Add a poster image of the entity.

Required.

addPosterImages

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

Add poster images of the entity.

Required.

build

public MusicTrackEntity build()

setAlbum

@CanIgnoreReturnValue
public MusicTrackEntity.Builder setAlbum(String album)

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

Optional.

setDescription

@CanIgnoreReturnValue
public MusicTrackEntity.Builder setDescription(String description)

Adds the description of the audio entity.

Optional.

setDownloadedOnDevice

@CanIgnoreReturnValue
public MusicTrackEntity.Builder setDownloadedOnDevice(boolean downloadedOnDevice)

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

Optional.

setDurationMillis

@CanIgnoreReturnValue
public MusicTrackEntity.Builder setDurationMillis(long durationMillis)

Sets the duration of the music track.

Optional.

setEntityId

@CanIgnoreReturnValue
public MusicTrackEntity.Builder setEntityId(String entityId)

Sets content id of the entity.

Optional.

setExplicitContent

@CanIgnoreReturnValue
public MusicTrackEntity.Builder setExplicitContent(boolean explicitContent)

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

Optional.

setInfoPageUri

@CanIgnoreReturnValue
public MusicTrackEntity.Builder setInfoPageUri(Uri infoPageUri)

Sets the info page uri of the music track.

Optional.

setLastEngagementTimeMillis

@CanIgnoreReturnValue
public MusicTrackEntity.Builder setLastEngagementTimeMillis(long lastEngagementTimeMillis)

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

Optional.

setName

@CanIgnoreReturnValue
public MusicTrackEntity.Builder setName(String name)

Sets the name of the entity.

Required.

setPlayBackUri

@CanIgnoreReturnValue
public MusicTrackEntity.Builder setPlayBackUri(Uri playBackUri)

Sets the play back uri of the music track.

Required.

setProgressPercentComplete

@CanIgnoreReturnValue
public MusicTrackEntity.Builder setProgressPercentComplete(int progressPercentComplete)

Sets progress percent complete of the audio entity.

Optional