FileDocCategorySizeDatePackage
ParcelableVolumeInfo.javaAPI DocAndroid 5.1 API2392Thu Mar 12 22:22:56 GMT 2015android.support.v4.media.session

ParcelableVolumeInfo

public class ParcelableVolumeInfo extends Object implements android.os.Parcelable
Convenience 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 intdescribeContents()

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

        dest.writeInt(volumeType);
        dest.writeInt(controlType);
        dest.writeInt(maxVolume);
        dest.writeInt(currentVolume);
        dest.writeInt(audioStream);