MediaSessionCompat.QueueItem

public static final class MediaSessionCompat.QueueItem
extends Object implements Parcelable

java.lang.Object
   ↳ android.support.v4.media.session.MediaSessionCompat.QueueItem


A single item that is part of the play queue. It contains a description of the item and its id in the queue.

Summary

Constants

int UNKNOWN_ID

This id is reserved.

Inherited constants

Fields

public static final Creator<MediaSessionCompat.QueueItem> CREATOR

Public constructors

QueueItem(MediaDescriptionCompat description, long id)

Creates a new MediaSessionCompat.QueueItem.

Public methods

int describeContents()
static MediaSessionCompat.QueueItem fromQueueItem(Object queueItem)

Creates an instance from a framework MediaSession.QueueItem object.

static List<MediaSessionCompat.QueueItem> fromQueueItemList(List<?> itemList)

Creates a list of MediaSessionCompat.QueueItem objects from a framework MediaSession.QueueItem object list.

MediaDescriptionCompat getDescription()

Gets the description for this item.

long getQueueId()

Gets the queue id for this item.

Object getQueueItem()

Gets the underlying MediaSession.QueueItem.

String toString()