Builder class for constructing a MediaQueueData
.
Public Constructor Summary
Builder()
The constructor of the
MediaQueueData.Builder
class.
|
Public Method Summary
MediaQueueData |
build()
Builds a
MediaQueueData
from the builder.
|
MediaQueueData.Builder |
setContainerMetadata(MediaQueueContainerMetadata
containerMetadata)
Sets the additional description for the queue, including an optional list of
media sections metadata, images, etc.
|
MediaQueueData.Builder | |
MediaQueueData.Builder | |
MediaQueueData.Builder | |
MediaQueueData.Builder | |
MediaQueueData.Builder |
setQueueType(int queueType)
Sets the type of the queue.
|
MediaQueueData.Builder |
setRepeatMode(int repeatMode)
Sets the repeat mode.
|
MediaQueueData.Builder |
setStartIndex(int startIndex)
Sets the index of the item that should play first.
|
MediaQueueData.Builder |
setStartTime(long startTime)
Sets the playback start time, in milliseconds.
|
Inherited Method Summary
Public Constructors
public Builder ()
The constructor of the MediaQueueData.Builder
class.
Public Methods
public MediaQueueData build ()
Builds a MediaQueueData
from the builder.
public MediaQueueData.Builder setContainerMetadata (MediaQueueContainerMetadata containerMetadata)
Sets the additional description for the queue, including an optional list of media sections metadata, images, etc.
public MediaQueueData.Builder setEntity (String entity)
Sets the queue deep link (for example, the deep link of an album, playlist or radio station).
public MediaQueueData.Builder setItems (List<MediaQueueItem> items)
Sets the list of queue items. The item list should only be valid when sending the
MediaQueueData
in load requests. In all other cases, it should be null
.
public MediaQueueData.Builder setName (String name)
Sets the display name for the queue.
public MediaQueueData.Builder setQueueId (String queueId)
Sets the queue ID.
public MediaQueueData.Builder setQueueType (int queueType)
Sets the type of the queue.
Possible values are:
MediaQueueData.MEDIA_QUEUE_TYPE_GENERIC
MediaQueueData.MEDIA_QUEUE_TYPE_ALBUM
MediaQueueData.MEDIA_QUEUE_TYPE_PLAYLIST
MediaQueueData.MEDIA_QUEUE_TYPE_AUDIO_BOOK
MediaQueueData.MEDIA_QUEUE_TYPE_RADIO_STATION
MediaQueueData.MEDIA_QUEUE_TYPE_PODCAST_SERIES
MediaQueueData.MEDIA_QUEUE_TYPE_TV_SERIES
MediaQueueData.MEDIA_QUEUE_TYPE_VIDEO_PLAYLIST
MediaQueueData.MEDIA_QUEUE_TYPE_LIVE_TV
MediaQueueData.MEDIA_QUEUE_TYPE_MOVIE
public MediaQueueData.Builder setRepeatMode (int repeatMode)
Sets the repeat mode. Possible values are the same as MediaQueueData.getRepeatMode()
.
public MediaQueueData.Builder setStartIndex (int startIndex)
Sets the index of the item that should play first.
public MediaQueueData.Builder setStartTime (long startTime)
Sets the playback start time, in milliseconds.
If not set, the receiver will set the start time depending on the stream type.
- Non-live streams: loaded from 0
- Live streams: loaded from the most recent position