Package com.google.android.exoplayer2
Class DeviceInfo
- java.lang.Object
-
- com.google.android.exoplayer2.DeviceInfo
-
- All Implemented Interfaces:
Bundleable
public final class DeviceInfo extends Object implements Bundleable
Information about the playback device.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
DeviceInfo.PlaybackType
Types of playback.-
Nested classes/interfaces inherited from interface com.google.android.exoplayer2.Bundleable
Bundleable.Creator<T extends Bundleable>
-
-
Field Summary
Fields Modifier and Type Field Description static Bundleable.Creator<DeviceInfo>
CREATOR
Object that can restoreDeviceInfo
from aBundle
.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.DeviceInfo.PlaybackType int
playbackType
The type of playback.static DeviceInfo
UNKNOWN
Unknown DeviceInfo.
-
Constructor Summary
Constructors Constructor Description DeviceInfo(@com.google.android.exoplayer2.DeviceInfo.PlaybackType int playbackType, int minVolume, int maxVolume)
Creates device information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
hashCode()
Bundle
toBundle()
Returns aBundle
representing the information stored in this object.
-
-
-
Field Detail
-
PLAYBACK_TYPE_LOCAL
public static final int PLAYBACK_TYPE_LOCAL
Playback happens on the local device (e.g. phone).- See Also:
- Constant Field Values
-
PLAYBACK_TYPE_REMOTE
public static final int PLAYBACK_TYPE_REMOTE
Playback happens outside of the device (e.g. a cast device).- See Also:
- Constant Field Values
-
UNKNOWN
public static final DeviceInfo UNKNOWN
Unknown DeviceInfo.
-
playbackType
public final @com.google.android.exoplayer2.DeviceInfo.PlaybackType int playbackType
The type of playback.
-
minVolume
public final int minVolume
The minimum volume that the device supports.
-
maxVolume
public final int maxVolume
The maximum volume that the device supports.
-
CREATOR
public static final Bundleable.Creator<DeviceInfo> CREATOR
Object that can restoreDeviceInfo
from aBundle
.
-
-
Method Detail
-
toBundle
public Bundle toBundle()
Description copied from interface:Bundleable
Returns aBundle
representing the information stored in this object.- Specified by:
toBundle
in interfaceBundleable
-
-