public final class DeviceInfo extends Object
| Modifier and Type | Class | Description |
|---|---|---|
static interface |
DeviceInfo.PlaybackType |
Types of playback.
|
| Modifier and Type | Field | Description |
|---|---|---|
int |
maxVolume |
The maximum volume that the device supports.
|
int |
minVolume |
The minimum volume that the device supports.
|
static int |
PLAYBACK_TYPE_LOCAL |
Playback happens on the local device (e.g.
|
static int |
PLAYBACK_TYPE_REMOTE |
Playback happens outside of the device (e.g.
|
@com.google.android.exoplayer2.device.DeviceInfo.PlaybackType int |
playbackType |
The type of playback.
|
static DeviceInfo |
UNKNOWN |
Unknown DeviceInfo.
|
| Constructor | Description |
|---|---|
DeviceInfo(@com.google.android.exoplayer2.device.DeviceInfo.PlaybackType int playbackType,
int minVolume,
int maxVolume) |
Creates device information.
|
public static final int PLAYBACK_TYPE_LOCAL
public static final int PLAYBACK_TYPE_REMOTE
public static final DeviceInfo UNKNOWN
public final @com.google.android.exoplayer2.device.DeviceInfo.PlaybackType int playbackType
public final int minVolume
public final int maxVolume