Sequenceablepublic final class AVQueueElement extends Object implements Sequenceable
AVQueueElement
instance contains the description of a media item and its position in the playback queue.SystemCapability.Multimedia#MEDIASequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static Sequenceable.Producer<AVQueueElement> |
CREATOR |
|
static long |
INVALID_ID |
| 构造器 | 说明 |
|---|---|
AVQueueElement(AVDescription description,
long elementId) |
A constructor used to create an
AVQueueElement instance used to describe a media item. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
AVDescription |
getDescription() |
Obtains the
AVDescription from this AVQueueElement instance. |
long |
getElementId() |
Obtains the position of this
AVQueueElement instance in the playback queue. |
boolean |
marshalling(Parcel out) |
Writes the
AVQueueElement instance into a Parcel. |
boolean |
unmarshalling(Parcel in) |
Restores the
AVQueueElement instance from a Parcel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic static final Sequenceable.Producer<AVQueueElement> CREATOR
public static final long INVALID_ID
public AVQueueElement(AVDescription description, long elementId)
AVQueueElement instance used to describe a media item.description - Indicates the AVDescription contained in
the AVQueueElement instance to be created.elementId - Indicates the position of the AVQueueElement in the playback queue.public AVDescription getDescription()
AVDescription from this AVQueueElement instance.AVDescription instance.public long getElementId()
AVQueueElement instance in the playback queue.public boolean marshalling(Parcel out)
AVQueueElement instance into a Parcel.marshalling 在接口中 Sequenceableout - Indicates the Parcel into which the AVQueueElement instance will be written.true if the marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel in)
AVQueueElement instance from a Parcel.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel into which the AVQueueElement instance has been written.true if the unmarshalling is successful; returns false otherwise.