Package 

Interface DeviceInfoManager

    • Method Detail

      • isPermissionGranted

         abstract boolean isPermissionGranted(String permission)

        Check if is permission granted.

        Parameters:
        permission - the permission name
      • getDeviceOrientation

         abstract int getDeviceOrientation()

        Get the device orientation. Return values can be compared toandroid.content.res.Configuration orientation values

      • isScreenOn

         abstract boolean isScreenOn()

        Get device screen state.

      • isScreenLocked

         abstract boolean isScreenLocked()

        Get device screen lock state.

      • storePicture

         abstract void storePicture(String url)

        Allow to store picture on device.

        Parameters:
        url - network URL to the picture
      • playVideo

         abstract void playVideo(String url, Context context)

        Allow to play video inside internal player

        Parameters:
        url - network URL to the video
      • canStorePicture

         abstract boolean canStorePicture()

        Check the state to have ability to save picture on device.

      • hasTelephony

         abstract boolean hasTelephony()

        Check the state that device has telephony to do calls/sms

      • getDeviceDensity

         abstract float getDeviceDensity()

        Check the device screen density

      • hasGps

         abstract boolean hasGps()

        Checks if the device can use location features

      • isTablet

         abstract boolean isTablet()

        Checks if the device is a tablet