Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 22.1.0
belongs to Maven artifact androidx.media:media:1.0.0-rc01

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

added in version 22.1.0
public static final Creator<ParcelableVolumeInfo> CREATOR

audioStream

added in version 22.1.0
public int audioStream

controlType

added in version 22.1.0
public int controlType

currentVolume

added in version 22.1.0
public int currentVolume

maxVolume

added in version 22.1.0
public int maxVolume

volumeType

added in version 22.1.0
public int volumeType

Public constructors

ParcelableVolumeInfo

added in version 22.1.0
public ParcelableVolumeInfo (int volumeType, 
                int audioStream, 
                int controlType, 
                int maxVolume, 
                int currentVolume)

Parameters
volumeType int

audioStream int

controlType int

maxVolume int

currentVolume int

ParcelableVolumeInfo

added in version 22.1.0
public ParcelableVolumeInfo (Parcel from)

Parameters
from Parcel

Public methods

describeContents

added in version 22.1.0
public int describeContents ()

Returns
int

writeToParcel

added in version 22.1.0
public void writeToParcel (Parcel dest, 
                int flags)

Parameters
dest Parcel

flags int