Class ExtensionLicense

java.lang.Object
com.esri.arcgisruntime.ExtensionLicense

public final class ExtensionLicense extends Object
Details of an extension license.

A list of extension licenses can be obtained by calling ArcGISRuntimeEnvironment.getLicense() and then License.getExtensions().

To get access to the API extension functionality, you need to license the app by calling ArcGISRuntimeEnvironment.setLicense(String, List), supplying a license string and a list of extension license strings.

Note that at LicenseLevel.DEVELOPER all extension functionality is available, although License.getExtensions() may return an empty list.

See Licensing details by class for information about which API calls require an extension license.

Since:
100.0.0
See Also:
  • Method Details

    • getExtensionName

      public String getExtensionName()
      The name of the extension license. This is typically the name embedded in the license key string for the extension.
      Returns:
      name of the extension
      Since:
      100.0.0
    • getExpiry

      public Calendar getExpiry()
      Gets the date the extension license expires. This method gets the expiry date of a license set with ArcGISRuntimeEnvironment.setLicense(String, List).
      Returns:
      the date the extension license expires
      Since:
      100.0.0
    • isPermanent

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

      public LicenseStatus getLicenseStatus()
      Gets the LicenseStatus of the extension license. Usually this status returns Valid because the current License object always contains the most current valid license.
      Returns:
      the LicenseStatus of the extension license
      Since:
      100.0.0