Interface DeviceInforming

    • Constructor Detail

    • Method Detail

      • getApplicationBaseDir

         abstract File getApplicationBaseDir()

        Returns the directory which can be used as a application data directory.

        Returns:

        A File representing the application data directory, or null if not available on the platform

      • getLocaleString

         abstract String getLocaleString()

        Returns active locale's value in string format. The default value is en-US

        Returns:

        Locale as String

      • getDefaultUserAgent

         abstract String getDefaultUserAgent()

        Returns the default platform/device user agent value

        Returns:

        String containing the default user agent

      • getApplicationCacheDir

         abstract File getApplicationCacheDir()

        Returns the application specific cache directory. The application will be able to read and write to the directory, but there is no guarantee made as to the persistence of the data (it may be deleted by the system when storage is required).

        Returns:

        A File representing the application cache directory, or null if not available on the platform.

      • getAsset

         abstract InputStream getAsset(String fileName)

        Open the requested asset returns an InputStream to read its contents.

        Parameters:
        fileName - asset's name which is to be retrieved
        Returns:

        an InputStream to read file's content, or null if not available on the platform

      • getPropertyFromManifest

         abstract String getPropertyFromManifest(String resourceKey)

        Returns the property value specific to the key from the manifest file.

        Parameters:
        resourceKey - resource key
        Returns:

        A String value of the requested property, or null if there is no value defined for the key

      • getApplicationName

         abstract String getApplicationName()

        Returns the application name.

        Returns:

        A String representing Application name if available, null otherwise

      • getApplicationPackageName

         abstract String getApplicationPackageName()

        Returns the application package name.

        Returns:

        A String representing Application package name if available, null otherwise

      • getApplicationVersion

         abstract String getApplicationVersion()

        Returns the application version.

        Returns:

        A String representing Application version if available, null otherwise

      • getApplicationVersionCode

         abstract String getApplicationVersionCode()

        Returns the application version code as a string.

        Returns:

        application version code formatted as String using the active locale, if available. null otherwise

      • getActiveLocale

         abstract Locale getActiveLocale()

        Returns the currently selected / active locale value with respect to the application context.

        Returns:

        A Locale value, if available, null otherwise

      • getSystemLocale

         abstract Locale getSystemLocale()

        Returns the currently selected / active locale value on the device settings as set by the user.

        Returns:

        A Locale value, if available, null otherwise

      • getCurrentOrientation

         abstract int getCurrentOrientation()

        Returns the current screen orientation

        Returns:

        a int value indicates the orientation. 0 for unknown, 1 for portrait and 2 for landscape

      • getDeviceBrand

         abstract String getDeviceBrand()

        Returns the device brand.

        Returns:

        String containing the consumer-visible brand name

      • getDeviceManufacturer

         abstract String getDeviceManufacturer()

        The device manufacturer's name.

        Returns:

        Device manufacturer name String if available. null otherwise

      • getDeviceName

         abstract String getDeviceName()

        Returns the device name.

        Returns:

        String Device name if available, null otherwise

      • getDevice

         abstract String getDevice()

        Returns name of the industrial design for the device

        Returns:

        String containing the name of the industrial design

      • getDeviceBuildId

         abstract String getDeviceBuildId()

        Returns a string that identifies a particular device OS build. This value may be present on Android devices, with a value like "M4-rc20". The value is platform dependent and platform specific.

        Returns:

        String Build ID string if available. null otherwise

      • getMobileCarrierName

         abstract String getMobileCarrierName()

        Returns the device's mobile carrier name.

        Returns:

        A String representing the carrier name. null if this value is not available

      • getRunMode

         abstract String getRunMode()

        Returns a string that identifies the SDK running mode, e.g. Application, Extension.

        Returns:

        String containing running mode

      • getDeviceUniqueId

         abstract String getDeviceUniqueId()

        Get unique identifier for device.

        Returns:

        String containing the device UUID or null if application Context is null