ParcelableVolumeInfopublic class ParcelableVolumeInfo extends Object implements android.os.ParcelableConvenience class for passing information about the audio configuration of a
{@link MediaSessionCompat}. |
Fields Summary |
---|
public int | volumeType | public int | audioStream | public int | controlType | public int | maxVolume | public int | currentVolume | public static final Parcelable.Creator | CREATOR |
Constructors Summary |
---|
public ParcelableVolumeInfo(int volumeType, int audioStream, int controlType, int maxVolume, int currentVolume)
this.volumeType = volumeType;
this.audioStream = audioStream;
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();
audioStream = from.readInt();
|
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);
dest.writeInt(audioStream);
|
|