Package com.esri.arcgisruntime
Class ExtensionLicense
- java.lang.Object
-
- com.esri.arcgisruntime.ExtensionLicense
-
public final class ExtensionLicense extends java.lang.Object
Provides information about Runtime extension license. A list of extension licenses can be obtained by callingArcGISRuntimeEnvironment.getLicense()
and thenLicense.getExtensions()
.To get access to Runtime extension functionality, you need to license the app by calling
ArcGISRuntimeEnvironment.setLicense(String, List)
, supplying both a runtime license key and a list of extension license keys.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:
License.getExtensions()
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Calendar
getExpiry()
Returns the extension license expiry date and time in UTC.java.lang.String
getExtensionName()
This is typically the name found in the license key string for the extension.LicenseStatus
getLicenseStatus()
Returns the license status for the current license applied to the app.boolean
isPermanent()
Returns true if extension license is permanent; false otherwise Most extension license keys do not expire.
-
-
-
Method Detail
-
getExtensionName
public java.lang.String getExtensionName()
This is typically the name found in the license key string for the extension.- Returns:
- name of the extension
- Since:
- 100.0.0
-
getExpiry
public java.util.Calendar getExpiry()
Returns the extension license expiry date and time in UTC. This method gets the expiry date of a license set withArcGISRuntimeEnvironment.setLicense(String, List)
.- Returns:
- the expiry date of the extension
- Since:
- 100.0.0
-
isPermanent
public boolean isPermanent()
Returns true if extension license is permanent; false otherwise Most extension license keys do not expire.- Returns:
- true if extension 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 Valid because the current License object always contains the most current valid license.- Returns:
- the license status
- Since:
- 100.0.0
-
-