Builder class for constructing a MediaQueueData
.
Public Constructor Summary
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 MediaQueueData.Builder ()
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:
public MediaQueueData.Builder setRepeatMode (int repeatMode)
Sets the repeat mode. Possible values are the same as 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