Skip To Content ArcGIS for Developers Sign In Dashboard

ExtensionLicense Class


Runtime extension license information. More...

Header: #include <ExtensionLicense>
Since: Esri::ArcGISRuntime 100.0

Public Functions

ExtensionLicense(const ExtensionLicense &other)
ExtensionLicense(ExtensionLicense &&other)
QDateTime expiry() const
bool isPermanent() const
LicenseStatus licenseStatus() const
QString name() const
ExtensionLicense &operator=(const ExtensionLicense &other)
ExtensionLicense &operator=(ExtensionLicense &&other)

Detailed Description

Runtime extension license information.

To get access to extension licensed functionality you need to supply extension licenses by calling ArcGISRuntimeEnvironment::setLicense(const QString&, const QStringList&). A Runtime license must always be provided as well in order to unlock the extensions.

A list of extension licenses can be obtained by calling ArcGISRuntimeEnvironment::license() and iterating through the License's extensions. These are the extensions that are available for use within the app. All extensions are available when licensed at the developer level even through the list of extensions may be empty.

See also License.

Member Function Documentation


Default constructor.

ExtensionLicense::ExtensionLicense(const ExtensionLicense &other)

Copy constructor from other ExtensionLicense.

ExtensionLicense::ExtensionLicense(ExtensionLicense &&other)

Move constructor from other ExtensionLicense.



QDateTime ExtensionLicense::expiry() const

Returns the extension license expiry date and time in UTC.

This method gets the expiry date of a license set with ArcGISRuntimeEnvironment::setLicense(const QString&, const QStringList&).

bool ExtensionLicense::isPermanent() const

Returns true if the extension license expiry is perpetual.

This is common amongst license keys.

LicenseStatus ExtensionLicense::licenseStatus() const

Returns the extension license status for the extensions available to the app.

Usually this status returns Valid because the current License object always contains extensions that were validated when supplied to the ArcGISRuntimeEnvironment.

QString ExtensionLicense::name() const

Returns the extension license name.

This is typically the name found in the license key string for the extension.

ExtensionLicense &ExtensionLicense::operator=(const ExtensionLicense &other)

Assignment operator from other ExtensionLicense.

ExtensionLicense &ExtensionLicense::operator=(ExtensionLicense &&other)

Move operator from other ExtensionLicense.

Feedback on this topic?