setLicense

License an application for deployment using license info for named-user access. A license info instance can be obtained from a portal for the current logged in user. The license info instance is only valid for 30 days so the user will be required to log into the portal again when this expires.

Return

the LicenseResult of the main license attempting to be set. A null is returned on error.

Since

200.1.0

Parameters

licenseInfo

the LicenseInfo used for named-user access

Throws

if a license has already been set or cannot be changed


fun setLicense(licenseKey: LicenseKey, LicenseExtensions: List<LicenseKey> = listOf()): LicenseResult?

License an application for deployment using an ESRI license string and one or more extension license strings.

Return

the LicenseResult of the main license attempting to be set. A null is returned on error.

Since

200.1.0

Parameters

licenseKey

a LicenseKey indicating a lite, basic, standard, or advanced ESRI license

LicenseExtensions

a list of LicenseKey for ESRI extension license

Throws

if a license has already been set or cannot be changed