Package 

Class DeviceUtil


  • 
    public class DeviceUtil
    
                        

    A Utility class to help determine characteristics about the device

    • Method Summary

      Modifier and Type Method Description
      boolean supportsExoPlayer(Context context)
      boolean isNotCompatible(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 isDeviceTV(Context context) Determines if the current device is a TV.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isNotCompatible

         boolean isNotCompatible(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

        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