added in version 22.1.0
belongs to Maven artifact androidx.media:media:1.0.0-alpha1

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
Creator<ParcelableVolumeInfo> CREATOR

audioStream

added in version 22.1.0
int audioStream

controlType

added in version 22.1.0
int controlType

currentVolume

added in version 22.1.0
int currentVolume

maxVolume

added in version 22.1.0
int maxVolume

volumeType

added in version 22.1.0
int volumeType

Public constructors

ParcelableVolumeInfo

added in version 22.1.0
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
ParcelableVolumeInfo (Parcel from)

Parameters
from Parcel

Public methods

describeContents

added in version 22.1.0
int describeContents ()

Returns
int

writeToParcel

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

Parameters
dest Parcel

flags int