ParcelableVolumeInfopublic class ParcelableVolumeInfo extends Object implements android.os.ParcelableConvenience class for passing information about the audio configuration of a
session. The public implementation is {@link MediaController.PlaybackInfo}. |
Fields Summary |
---|
public int | volumeType | public android.media.AudioAttributes | audioAttrs | public int | controlType | public int | maxVolume | public int | currentVolume | public static final Parcelable.Creator | CREATOR |
Constructors Summary |
---|
public ParcelableVolumeInfo(int volumeType, android.media.AudioAttributes audioAttrs, int controlType, int maxVolume, int currentVolume)
this.volumeType = volumeType;
this.audioAttrs = audioAttrs;
this.controlType = controlType;
this.maxVolume = maxVolume;
this.currentVolume = currentVolume;
| public ParcelableVolumeInfo(android.os.Parcel from)
volumeType = from.readInt();
controlType = from.readInt();
maxVolume = from.readInt();
currentVolume = from.readInt();
audioAttrs = AudioAttributes.CREATOR.createFromParcel(from);
|
Methods Summary |
---|
public int | describeContents()
return 0;
| public void | writeToParcel(android.os.Parcel dest, int flags)
dest.writeInt(volumeType);
dest.writeInt(controlType);
dest.writeInt(maxVolume);
dest.writeInt(currentVolume);
audioAttrs.writeToParcel(dest, flags);
|
|