added in version 22.1.0
belongs to Maven artifact com.android.support:support-media-compat:28.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

From interface android.os.Parcelable

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

From class java.lang.Object
From interface android.os.Parcelable

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