Google is committed to advancing racial equity for Black communities. See how.

MediaQueueContainerMetadata

public class MediaQueueContainerMetadata extends Object
implements Parcelable

Additional metadata for the media queue container.

Nested Class Summary

class MediaQueueContainerMetadata.Builder Builder class for constructing a MediaQueueContainerMetadata
@interface MediaQueueContainerMetadata.MediaQueueContainerType The container type of the media queue. 

Constant Summary

int MEDIA_QUEUE_CONTAINER_TYPE_AUDIO_BOOK A media type representing an audio book.
int MEDIA_QUEUE_CONTAINER_TYPE_GENERIC A media type representing generic media content.

Inherited Constant Summary

Public Method Summary

boolean
equals(Object other)
double
getContainerDuration()
Returns the total playback time for the container.
List<WebImage>
getContainerImages()
Returns the images associated with the queue.
int
getContainerType()
Returns the container type.
List<MediaMetadata>
getSections()
Returns the information about the sections of the media stream, if any.
String
getTitle()
Returns the container title.
int
void
writeToParcel(Parcel out, int flags)

Inherited Method Summary

Constants

public static final int MEDIA_QUEUE_CONTAINER_TYPE_AUDIO_BOOK

A media type representing an audio book.

Constant Value: 1

public static final int MEDIA_QUEUE_CONTAINER_TYPE_GENERIC

A media type representing generic media content.

Constant Value: 0

Public Methods

public boolean equals (Object other)

public double getContainerDuration ()

Returns the total playback time for the container.

public List<WebImage> getContainerImages ()

Returns the images associated with the queue. By default the first image is used when displaying queue information. This is used for audiobook image, a TV channel logo, album cover, etc.

public int getContainerType ()

Returns the container type. Possible values include:

public List<MediaMetadata> getSections ()

Returns the information about the sections of the media stream, if any.

public String getTitle ()

Returns the container title. This can be audiobook title, live TV channel name, album name, playlist name, etc.

public int hashCode ()

public void writeToParcel (Parcel out, int flags)