-
public class DeviceUtilA Utility class to help determine characteristics about the device
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDeviceUtil.NonCompatibleDevice
-
Method Summary
Modifier and Type Method Description booleansupportsExoPlayer(Context context)booleanisNotCompatible(List<DeviceUtil.NonCompatibleDevice> nonCompatibleDevices)Determines if the current device is not compatible based on the list of devicesthat don't correctly support the ExoPlayer booleanisDeviceTV(Context context)Determines if the current device is a TV. -
-
Method Detail
-
supportsExoPlayer
boolean supportsExoPlayer(Context context)
-
isNotCompatible
boolean isNotCompatible(List<DeviceUtil.NonCompatibleDevice> nonCompatibleDevices)
Determines if the current device is not compatible based on the list of devicesthat don't correctly support the ExoPlayer
- Parameters:
nonCompatibleDevices- The list of devices that aren't compatible
-
isDeviceTV
boolean isDeviceTV(Context context)
Determines if the current device is a TV.
- Parameters:
context- The context to use for determining the device information
-
-
-
-