;

ExtensionLicense Class

  • ExtensionLicense
  • class Esri::ArcGISRuntime::ExtensionLicense

    Runtime extension license information. More...

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

    This class was introduced in Esri::ArcGISRuntime 100.0.

    Public Functions

    ExtensionLicense(Esri::ArcGISRuntime::ExtensionLicense &&other)
    ExtensionLicense(const Esri::ArcGISRuntime::ExtensionLicense &other)
    ExtensionLicense()
    Esri::ArcGISRuntime::ExtensionLicense &operator=(Esri::ArcGISRuntime::ExtensionLicense &&other)
    Esri::ArcGISRuntime::ExtensionLicense &operator=(const Esri::ArcGISRuntime::ExtensionLicense &other)
    ~ExtensionLicense()
    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&). 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

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

    Move constructor from other ExtensionLicense.

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

    Copy constructor from other ExtensionLicense.

    ExtensionLicense::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.

    ExtensionLicense::~ExtensionLicense()

    Destructor

    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.