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.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | UNKNOWN_ID | This id is reserved. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new
MediaSessionCompat.QueueItem .
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Get the description for this item.
| |||||||||||
Get the queue id for this item.
| |||||||||||
Get the underlying
MediaSession.QueueItem .
| |||||||||||
Obtain a compat wrapper for an existing QueueItem.
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
This id is reserved. No items can be explicitly asigned this id.
Create a new MediaSessionCompat.QueueItem
.
description | The MediaDescriptionCompat for this item. |
---|---|
id | An identifier for this item. It must be unique within the
play queue and cannot be UNKNOWN_ID .
|
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Get the queue id for this item.
Get the underlying
MediaSession.QueueItem
.
On builds before LOLLIPOP
null
is returned.
MediaSession.QueueItem
or null.
Obtain a compat wrapper for an existing QueueItem.
queueItem | The MediaSession.QueueItem to
wrap. |
---|
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.
Flatten this object in to a Parcel.
dest | The Parcel in which the object should be written. |
---|---|
flags | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|