LicenseInfo Class

  • LicenseInfo
  • class Esri::ArcGISRuntime::LicenseInfo

    Contains information for licensing an app for Lite or Basic-level functionality from a portal instance. More...

    Header: #include <LicenseInfo.h>
    Since: Esri::ArcGISRuntime 100.0
    Inherits: Esri::ArcGISRuntime::JsonSerializable

    Public Functions

    LicenseInfo()
    LicenseInfo(const Esri::ArcGISRuntime::LicenseInfo &other)
    LicenseInfo(Esri::ArcGISRuntime::LicenseInfo &&other)
    virtual ~LicenseInfo() override
    bool isEmpty() const
    Esri::ArcGISRuntime::LicenseInfo &operator=(const Esri::ArcGISRuntime::LicenseInfo &other)
    Esri::ArcGISRuntime::LicenseInfo &operator=(Esri::ArcGISRuntime::LicenseInfo &&other)

    Reimplemented Public Functions

    virtual QString toJson() const override
    virtual QJsonObject unknownJson() const override
    virtual QJsonObject unsupportedJson() const override

    Static Public Members

    Esri::ArcGISRuntime::LicenseInfo fromJson(const QString &json)

    Detailed Description

    To validate with information from a portal, you will need a LicenseInfo instance. This can be obtained by calling PortalInfo::licenseInfo(). The LicenseInfo can then be used to authorize the ArcGIS Maps app for either Lite or Basic-level functionality by calling ArcGISRuntimeEnvironment::setLicense(const LicenseInfo&).

    Note that this information is only available when a user is logged in to the portal.

    Member Function Documentation

    LicenseInfo::LicenseInfo()

    Default constructor.

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

    Copy constructor from other LicenseInfo.

    LicenseInfo::LicenseInfo(Esri::ArcGISRuntime::LicenseInfo &&other)

    Move constructor from other LicenseInfo.

    [override virtual] LicenseInfo::~LicenseInfo()

    Destructor

    [static] Esri::ArcGISRuntime::LicenseInfo LicenseInfo::fromJson(const QString &json)

    Creates new LicenseInfo from json.

    This LicenseInfo instance can then be applied by calling ArcGISRuntimeEnvironment::setLicense(const LicenseInfo&).

    bool LicenseInfo::isEmpty() const

    Returns true if this LicenseInfo is empty.

    [override virtual] QString LicenseInfo::toJson() const

    Reimplements: JsonSerializable::toJson() const.

    Returns the LicenseInfo as a JSON string representation.

    This JSON string can be persisted to disk and reapplied to the app by calling fromJson which returns a new instance of LicenseInfo to be passed to ArcGISRuntimeEnvironment::setLicense(const LicenseInfo&). The LicenseInfo is valid for 30 days before it expires and requires the user to log in to the portal to acquire a new LicenseInfo object.

    [override virtual] QJsonObject LicenseInfo::unknownJson() const

    Reimplements: JsonSerializable::unknownJson() const.

    Gets the unknown JSON of this object.

    See also JsonSerializable.

    [override virtual] QJsonObject LicenseInfo::unsupportedJson() const

    Reimplements: JsonSerializable::unsupportedJson() const.

    Gets the unsupported JSON of this object.

    See also JsonSerializable.

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

    Assignment operator from other LicenseInfo.

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

    Move operator from other LicenseInfo.

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

    You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

    Your ArcGIS portal

    Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

    Your ArcGIS Location Platform dashboard

    Manage billing, monitor service usage, and access additional resources.

    Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

    Close