ExtensionLicense Class

  • ExtensionLicense
  • class Esri::ArcGISRuntime::ExtensionLicense

    ArcGIS Maps SDK extension license information. More...

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

    Public Functions

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

    Detailed Description

    To get access to extension licensed functionality you need to supply extension licenses by calling ArcGISRuntimeEnvironment::setLicense(const QString&, const QStringList&). An ArcGIS Maps SDK 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

    ExtensionLicense::ExtensionLicense(Esri::ArcGISRuntime::ExtensionLicense &&other)

    Move constructor from other ExtensionLicense.

    ExtensionLicense::ExtensionLicense(const Esri::ArcGISRuntime::ExtensionLicense &other)

    Copy constructor from other ExtensionLicense.


    Default constructor.

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

    Move operator from other ExtensionLicense.

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

    Assignment operator 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.

    Esri::ArcGISRuntime::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.

    Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.