public static final class MediaController.PlaybackInfo extends Object
Modifier and Type | Field and Description |
---|---|
static int |
PLAYBACK_TYPE_LOCAL
The session uses local playback.
|
static int |
PLAYBACK_TYPE_REMOTE
The session uses remote playback.
|
Constructor and Description |
---|
PlaybackInfo(int type,
AudioAttributes attrs,
int control,
int max,
int current) |
Modifier and Type | Method and Description |
---|---|
AudioAttributes |
getAudioAttributes()
Get the audio attributes for this session.
|
int |
getCurrentVolume()
Get the current volume for this session.
|
int |
getMaxVolume()
Get the maximum volume that may be set for this session.
|
int |
getPlaybackType()
Get the type of playback which affects volume handling.
|
int |
getVolumeControl()
Get the type of volume control that can be used.
|
public static final int PLAYBACK_TYPE_REMOTE
public static final int PLAYBACK_TYPE_LOCAL
public PlaybackInfo(int type, AudioAttributes attrs, int control, int max, int current)
public int getPlaybackType()
public AudioAttributes getAudioAttributes()
PLAYBACK_TYPE_REMOTE
these may be ignored by the
remote volume handler.public int getVolumeControl()
public int getMaxVolume()
public int getCurrentVolume()