Sequenceablepublic class AVPlaybackInfo extends Object implements Sequenceable
Sequenceable.Producer<T>| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static Sequenceable.Producer<AVPlaybackInfo> |
CREATOR |
Creates an
AVPlaybackInfo instance from the Parcel object. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getVolume() |
Obtains the current volume of this media session.
|
int |
getVolumeAdjustMode() |
Obtains the volume adjustment mode of this media session.
|
int |
getVolumeCeiling() |
Obtains the maximum volume allowed for this media session.
|
boolean |
isRemote() |
Checks whether this media session is used for remote playback.
|
boolean |
marshalling(Parcel out) |
Marshals this
AVPlaybackInfo object into a Parcel object. |
boolean |
unmarshalling(Parcel in) |
Unmarshals this
AVPlaybackInfo object from a Parcel object. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic static Sequenceable.Producer<AVPlaybackInfo> CREATOR
AVPlaybackInfo instance from the Parcel object.public boolean isRemote()
true if this media session is used for remote playback; returns false otherwise.public int getVolumeAdjustMode()
The adjustment mode can be one of the following:
AVVolumeHandler#ADJUST_MODE_FORBID_ALL: Volume adjustment is not allowed.AVVolumeHandler#ADJUST_MODE_ALLOW_SCROLL: Only adjustment based on volume steps is supported.AVVolumeHandler#ADJUST_MODE_ALLOW_ALL: Both adjustment based on volume steps and direct volume
setting are supported.public int getVolumeCeiling()
public int getVolume()
public boolean marshalling(Parcel out)
AVPlaybackInfo object into a Parcel object.marshalling 在接口中 Sequenceableout - Indicates the Parcel object for marshalling.true if the marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel in)
AVPlaybackInfo object from a Parcel object.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel object for unmarshalling.true if the unmarshalling is successful; returns false otherwise.