Class License

    • Method Detail

      • getLicenseLevel

        public LicenseLevel getLicenseLevel()
        Gets the current license level set in the application. The current license level will be one of the following values from the LicenseLevel enum: DEVELOPER, LITE, BASIC, STANDARD, or ADVANCED.

        By default, when an app is launched it runs at the LicenseLevel.DEVELOPER license level until a deployment license has been provided. The license level can change while an app runs. For instance, the app may start running licensed with LicenseLevel.LITE and can upgrade to LicenseLevel.BASIC or higher. Also note that we cannot downgrade the license level for an app once the LicenseLevel is set.

        Returns:
        the current license level
        Since:
        100.0.0
      • isPermanent

        public boolean isPermanent()
        Returns true if extension license is permanent; false otherwise. Most extension license strings do not expire. Typically, this returns true for a license string with 'none' in the expiration date field.
        Returns:
        true if the license is permanent
        Since:
        100.0.0
      • getLicenseStatus

        public LicenseStatus getLicenseStatus()
        Returns the license status for the current license applied to the app. Usually this status returns LicenseStatus.VALID because the current License object always contains the most current valid license.
        Returns:
        the current status of the license
        Since:
        100.0.0
        See Also:
        LicenseStatus
      • getLicenseType

        public LicenseType getLicenseType()
        Returns current license type for license applied to the app. In developer mode, this method returns LicenseType.DEVELOPER. Otherwise, it returns LicenseType.NAMED_USER if the app was licensed by logging in to a portal and acquiring LicenseInfo, or LicenseType.LICENSE_KEY if the app was licensed from a license string. The license type can change while an app runs. For instance, the app might initially set the license with a license string (type would be LICENSE_KEY) and later re-set the license with a LicenseInfo object (type would be NAMED_USER).
        Returns:
        the license type
        Since:
        100.0.0
        See Also:
        LicenseType
      • getExtensions

        public List<ExtensionLicense> getExtensions()
        Returns a list of extension licenses that were applied to the app.

        For valid extension license strings supplied when calling ArcGISRuntimeEnvironment.setLicense(String, List), this list is populated with information about the extension licenses. Use this function to iterate through extension licenses available for the app.

        All extension licensed functionality is available when the app is running in Developer mode. This list will return empty if this is the case, but you will be able to access all functionality while the view displays a watermark.

        Returns:
        the licenses of the extensions
        Since:
        100.0.0