ParcelableVolumeInfo

public class ParcelableVolumeInfo
extends Object implements Parcelable

java.lang.Object
   ↳ android.support.v4.media.session.ParcelableVolumeInfo


Convenience class for passing information about the audio configuration of a MediaSessionCompat.

Summary

Inherited constants

Fields

public static final Creator<ParcelableVolumeInfo> CREATOR

public int audioStream

public int controlType

public int currentVolume

public int maxVolume

public int volumeType

Public constructors

ParcelableVolumeInfo(int volumeType, int audioStream, int controlType, int maxVolume, int currentVolume)
ParcelableVolumeInfo(Parcel from)

Public methods

int describeContents()
void writeToParcel(Parcel dest, int flags)

Inherited methods

Fields

CREATOR

public static final Creator<ParcelableVolumeInfo> CREATOR

audioStream

public int audioStream

controlType

public int controlType

currentVolume

public int currentVolume

maxVolume

public int maxVolume

volumeType

public int volumeType

Public constructors

ParcelableVolumeInfo

public ParcelableVolumeInfo (int volumeType, 
                int audioStream, 
                int controlType, 
                int maxVolume, 
                int currentVolume)

Parameters
volumeType int

audioStream int

controlType int

maxVolume int

currentVolume int

ParcelableVolumeInfo

public ParcelableVolumeInfo (Parcel from)

Parameters
from Parcel

Public methods

describeContents

public int describeContents ()

Returns
int

writeToParcel

public void writeToParcel (Parcel dest, 
                int flags)

Parameters
dest Parcel

flags int