Sequenceablepublic class AVElement extends Object implements Sequenceable
SystemCapability.Multimedia#MEDIASequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
AVELEMENT_FLAG_PLAYABLE |
Indicates that the media item can be played when the AND operation result on the values of
flags and this
constant is non-zero, the media item can be scanned. |
static int |
AVELEMENT_FLAG_SCANNABLE |
Indicates that the media item can be scanned when the AND operation result on the values of
flags and
this constant is non-zero, the media item can be scanned. |
| 构造器 | 说明 |
|---|---|
AVElement(AVDescription description,
int flags) |
A constructor used to create an
AVElement instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
AVDescription |
getAVDescription() |
Obtains detailed information about the media item.
|
int |
getFlags() |
Obtains the value of media item flags.
|
String |
getMediaId() |
Obtains the media item ID.
|
boolean |
isPlayable() |
Checks whether the media item can be played.
|
boolean |
isScannable() |
Checks whether the media item can be scanned.
|
boolean |
marshalling(Parcel out) |
Marshals this
Sequenceable object into a Parcel. |
boolean |
unmarshalling(Parcel in) |
Unmarshals this
Sequenceable object from a Parcel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic static final int AVELEMENT_FLAG_PLAYABLE
flags and this
constant is non-zero, the media item can be scanned.public static final int AVELEMENT_FLAG_SCANNABLE
flags and
this constant is non-zero, the media item can be scanned.public AVElement(AVDescription description, int flags) throws IllegalArgumentException
AVElement instance.description - Indicates the description of a media item.flags - Specifies whether the media item can be played and scanned. The flags are as follows:
IllegalArgumentException - Throws this exception if the description or the media ID in description
is null.public int getFlags()
The flags are as follows:
public boolean isScannable()
true if the media item can be scanned; returns false otherwise.public boolean isPlayable()
true if the media item can be played; returns false otherwise.public AVDescription getAVDescription()
AVDescription instance if obtained; returns null
otherwise.public String getMediaId()
null otherwise.public boolean marshalling(Parcel out)
SequenceableSequenceable object into a Parcel.marshalling 在接口中 Sequenceableout - Indicates the Parcel object to which the Sequenceable
object will be marshaled..true if the marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel in)
SequenceableSequenceable object from a Parcel.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel object into which the Sequenceable
object has been marshaled.true if the unmarshalling is successful; returns false otherwise.