Class DeviceInfoImpl

    • Constructor Detail

      • DeviceInfoImpl

        public DeviceInfoImpl​(android.content.Context context)
    • Method Detail

      • hasTelephony

        public boolean hasTelephony()
        Description copied from interface: DeviceInfoManager
        Check the state that device has telephony to do calls/sms
        Specified by:
        hasTelephony in interface DeviceInfoManager
        Returns:
        true if has telephony
      • isPermissionGranted

        public boolean isPermissionGranted​(java.lang.String permission)
        Description copied from interface: DeviceInfoManager
        Check if is permission granted.
        Specified by:
        isPermissionGranted in interface DeviceInfoManager
        Parameters:
        permission - the permission name
        Returns:
        true, if is permission granted
      • isActivityOrientationLocked

        public boolean isActivityOrientationLocked​(android.content.Context context)
        Specified by:
        isActivityOrientationLocked in interface DeviceInfoManager
        Parameters:
        context - activity context.
        Returns:
        true if activity is locked in portrait || landscape (including reverse portrait and reverse landscape)
      • storePicture

        public void storePicture​(java.lang.String url)
                          throws java.lang.Exception
        Description copied from interface: DeviceInfoManager
        Allow to store picture on device.
        Specified by:
        storePicture in interface DeviceInfoManager
        Parameters:
        url - network URL to the picture
        Throws:
        java.lang.Exception - if there is
      • playVideo

        public void playVideo​(java.lang.String url,
                              android.content.Context context)
        Description copied from interface: DeviceInfoManager
        Allow to play video inside internal player
        Specified by:
        playVideo in interface DeviceInfoManager
        Parameters:
        url - network URL to the video
      • canStorePicture

        public boolean canStorePicture()
        Description copied from interface: DeviceInfoManager
        Check the state to have ability to save picture on device.
        Specified by:
        canStorePicture in interface DeviceInfoManager
        Returns:
        true if can process with picture saving
      • hasGps

        public boolean hasGps()
        Description copied from interface: DeviceInfoManager
        Checks if the device can use location features
        Specified by:
        hasGps in interface DeviceInfoManager
        Returns:
        true if location feature is available