Interface DeviceInfoManager

  • All Known Implementing Classes:
    DeviceInfoImpl

    public interface DeviceInfoManager
    Manager for retrieving device information.
    See Also:
    ManagersResolver
    • Method Detail

      • getMccMnc

        java.lang.String getMccMnc()
        Get the mcc-mnc
        Returns:
        the mcc-mnc
      • getCarrier

        java.lang.String getCarrier()
        Get the device carrier
        Returns:
        the carrier
      • isPermissionGranted

        boolean isPermissionGranted​(java.lang.String permission)
        Check if is permission granted.
        Parameters:
        permission - the permission name
        Returns:
        true, if is permission granted
      • getDeviceOrientation

        int getDeviceOrientation()
        Get the device orientation. Return values can be compared to android.content.res.Configuration orientation values
        Returns:
        the device orientation
      • getScreenWidth

        int getScreenWidth()
        Get the screen width.
        Returns:
        the screen width
      • getScreenHeight

        int getScreenHeight()
        Get the screen height.
        Returns:
        the screen height
      • isScreenOn

        boolean isScreenOn()
        Get device screen state.
        Returns:
        true if screen is on
      • isScreenLocked

        boolean isScreenLocked()
        Get device screen lock state.
        Returns:
        true if screen is locked
      • isActivityOrientationLocked

        boolean isActivityOrientationLocked​(android.content.Context context)
        Parameters:
        context - activity context.
        Returns:
        true if activity is locked in portrait || landscape (including reverse portrait and reverse landscape)
      • createCalendarEvent

        void createCalendarEvent​(CalendarEventWrapper event)
        Allow to create new calendar event.
        Parameters:
        event - is calendar event filled object
      • storePicture

        void storePicture​(java.lang.String url)
                   throws java.lang.Exception
        Allow to store picture on device.
        Parameters:
        url - network URL to the picture
        Throws:
        java.lang.Exception - if there is
      • playVideo

        void playVideo​(java.lang.String url,
                       android.content.Context context)
        Allow to play video inside internal player
        Parameters:
        url - network URL to the video
        context -
        Throws:
        java.io.IOException - if there is
      • canStorePicture

        boolean canStorePicture()
        Check the state to have ability to save picture on device.
        Returns:
        true if can process with picture saving
      • hasTelephony

        boolean hasTelephony()
        Check the state that device has telephony to do calls/sms
        Returns:
        true if has telephony
      • getDeviceDensity

        float getDeviceDensity()
        Check the device screen density
        Returns:
        float device density
      • hasGps

        boolean hasGps()
        Checks if the device can use location features
        Returns:
        true if location feature is available