public class DeviceUtil
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DeviceUtil.NonCompatibleDevice |
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.List<DeviceUtil.NonCompatibleDevice> |
NON_COMPATIBLE_DEVICES |
| Constructor and Description |
|---|
DeviceUtil() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDeviceTV(android.content.Context context)
Determines if the current device is a TV.
|
boolean |
isNotCompatible(java.util.List<DeviceUtil.NonCompatibleDevice> nonCompatibleDevices)
Determines if the current device is not compatible based on the list of devices
that don't correctly support the ExoPlayer
|
boolean |
supportsExoPlayer(android.content.Context context) |
protected static final java.util.List<DeviceUtil.NonCompatibleDevice> NON_COMPATIBLE_DEVICES
public boolean supportsExoPlayer(android.content.Context context)
public boolean isNotCompatible(java.util.List<DeviceUtil.NonCompatibleDevice> nonCompatibleDevices)
nonCompatibleDevices - The list of devices that aren't compatiblepublic boolean isDeviceTV(android.content.Context context)
context - The context to use for determining the device information