FileDocCategorySizeDatePackage
ParcelableVolumeInfo.javaAPI DocAndroid 5.1 API2541Thu Mar 12 22:22:30 GMT 2015android.media.session

ParcelableVolumeInfo

public class ParcelableVolumeInfo extends Object implements android.os.Parcelable
Convenience class for passing information about the audio configuration of a session. The public implementation is {@link MediaController.PlaybackInfo}.
hide

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 intdescribeContents()

        return 0;
    
public voidwriteToParcel(android.os.Parcel dest, int flags)

        dest.writeInt(volumeType);
        dest.writeInt(controlType);
        dest.writeInt(maxVolume);
        dest.writeInt(currentVolume);
        audioAttrs.writeToParcel(dest, flags);