MediaQueueData

public class MediaQueueData extends Object
implements Parcelable

A class that holds the information of the playing queue or media container.

Nested Class Summary

class MediaQueueData.Builder Builder class for constructing a MediaQueueData
@interface MediaQueueData.MediaQueueType The type of the media queue. 

Constant Summary

int MEDIA_QUEUE_TYPE_ALBUM A media type representing an album.
int MEDIA_QUEUE_TYPE_AUDIO_BOOK A media type representing an audio book.
int MEDIA_QUEUE_TYPE_GENERIC Generic or unspecified media type.
int MEDIA_QUEUE_TYPE_LIVE_TV A media type representing live TV.
int MEDIA_QUEUE_TYPE_MOVIE A media type representing a movie.
int MEDIA_QUEUE_TYPE_PLAYLIST A media type representing an audio playlist.
int MEDIA_QUEUE_TYPE_PODCAST_SERIES A media type representing a podcast series.
int MEDIA_QUEUE_TYPE_RADIO_STATION A media type representing a radio station.
int MEDIA_QUEUE_TYPE_TV_SERIES A media type representing a TV series.
int MEDIA_QUEUE_TYPE_VIDEO_PLAYLIST A media type representing a video playlist.

Inherited Constant Summary

Public Method Summary

boolean
equals(Object other)
MediaQueueContainerMetadata
getContainerMetadata()
Returns the additional description for the queue.
String
getEntity()
Returns the queue deep link.
List<MediaQueueItem>
getItems()
Returns the list of queue items.
String
getName()
Returns the display name for the queue.
String
getQueueId()
Returns the queue ID.
int
getQueueType()
Returns the type of the queue.
int
getRepeatMode()
Returns the repeat mode of the queue.
int
getStartIndex()
Returns the index of the item that should play first.
long
getStartTime()
Returns the playback start time, in milliseconds.
int
void
writeToParcel(Parcel out, int flags)

Inherited Method Summary

Constants

public static final int MEDIA_QUEUE_TYPE_ALBUM

A media type representing an album.

Constant Value: 1

public static final int MEDIA_QUEUE_TYPE_AUDIO_BOOK

A media type representing an audio book.

Constant Value: 3

public static final int MEDIA_QUEUE_TYPE_GENERIC

Generic or unspecified media type.

Constant Value: 0

public static final int MEDIA_QUEUE_TYPE_LIVE_TV

A media type representing live TV.

Constant Value: 8

public static final int MEDIA_QUEUE_TYPE_MOVIE

A media type representing a movie.

Constant Value: 9

public static final int MEDIA_QUEUE_TYPE_PLAYLIST

A media type representing an audio playlist.

Constant Value: 2

public static final int MEDIA_QUEUE_TYPE_PODCAST_SERIES

A media type representing a podcast series.

Constant Value: 5

public static final int MEDIA_QUEUE_TYPE_RADIO_STATION

A media type representing a radio station.

Constant Value: 4

public static final int MEDIA_QUEUE_TYPE_TV_SERIES

A media type representing a TV series.

Constant Value: 6

public static final int MEDIA_QUEUE_TYPE_VIDEO_PLAYLIST

A media type representing a video playlist.

Constant Value: 7

Public Methods

public boolean equals (Object other)

public MediaQueueContainerMetadata getContainerMetadata ()

Returns the additional description for the queue.

public String getEntity ()

Returns the queue deep link.

public List<MediaQueueItem> getItems ()

Returns 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 String getName ()

Returns the display name for the queue.

public String getQueueId ()

Returns the queue ID.

public int getQueueType ()

Returns the type of the queue.

public int getRepeatMode ()

public int getStartIndex ()

Returns the index of the item that should play first. This is only valid for load requests.

public long getStartTime ()

Returns the playback start time, in milliseconds.

public int hashCode ()

public void writeToParcel (Parcel out, int flags)