Builder class for MusicTrackEntity
.
Public Constructor Summary
Builder()
|
Public Method Summary
MusicTrackEntity.Builder | |
MusicTrackEntity.Builder | |
MusicTrackEntity.Builder | |
MusicTrackEntity.Builder | |
MusicTrackEntity |
build()
|
MusicTrackEntity.Builder | |
MusicTrackEntity.Builder | |
MusicTrackEntity.Builder |
setDownloadedOnDevice(boolean downloadedOnDevice)
Sets a boolean value to indicate if music track is downloaded on device or not.
|
MusicTrackEntity.Builder |
setDurationMillis(long durationMillis)
Sets the duration of the music track.
|
MusicTrackEntity.Builder | |
MusicTrackEntity.Builder |
setExplicitContent(boolean explicitContent)
Sets a boolean value to indicate if music track has explicit content or not.
|
MusicTrackEntity.Builder | |
MusicTrackEntity.Builder |
setLastEngagementTimeMillis(long lastEngagementTimeMillis)
Sets last engagement time of the entity, in milliseconds since Epoch.
|
MusicTrackEntity.Builder | |
MusicTrackEntity.Builder | |
MusicTrackEntity.Builder |
setProgressPercentComplete(int progressPercentComplete)
Sets progress percent complete of the audio entity.
|
Inherited Method Summary
Public Constructors
public Builder ()
Public Methods
public MusicTrackEntity.Builder addArtist (String artist)
Adds artist of the music track.
Required.
public MusicTrackEntity.Builder addArtists (List<String> artists)
Adds the list of artists of the music track.
Required.
public MusicTrackEntity.Builder addPosterImage (Image image)
Add a poster image of the entity.
Required.
public MusicTrackEntity.Builder addPosterImages (List<Image> images)
Add poster images of the entity.
Required.
public MusicTrackEntity build ()
public MusicTrackEntity.Builder setAlbum (String album)
Sets the name of the music album of the music track.
Optional.
public MusicTrackEntity.Builder setDescription (String description)
Adds the description of the audio entity.
Optional.
public MusicTrackEntity.Builder setDownloadedOnDevice (boolean downloadedOnDevice)
Sets a boolean value to indicate if music track is downloaded on device or not.
Optional.
public MusicTrackEntity.Builder setDurationMillis (long durationMillis)
Sets the duration of the music track.
Optional.
public MusicTrackEntity.Builder setEntityId (String entityId)
Sets content id of the entity.
Optional.
public MusicTrackEntity.Builder setExplicitContent (boolean explicitContent)
Sets a boolean value to indicate if music track has explicit content or not.
Optional.
public MusicTrackEntity.Builder setInfoPageUri (Uri infoPageUri)
Sets the info page uri of the music track.
Optional.
public MusicTrackEntity.Builder setLastEngagementTimeMillis (long lastEngagementTimeMillis)
Sets last engagement time of the entity, in milliseconds since Epoch.
Optional.
public MusicTrackEntity.Builder setName (String name)
Sets the name of the entity.
Required.
public MusicTrackEntity.Builder setPlayBackUri (Uri playBackUri)
Sets the play back uri of the music track.
Required.
public MusicTrackEntity.Builder setProgressPercentComplete (int progressPercentComplete)
Sets progress percent complete of the audio entity.
Optional