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(Esri::ArcGISRuntime::LicenseInfo &&other)
    LicenseInfo(const Esri::ArcGISRuntime::LicenseInfo &other)
    Esri::ArcGISRuntime::LicenseInfo &operator=(Esri::ArcGISRuntime::LicenseInfo &&other)
    Esri::ArcGISRuntime::LicenseInfo &operator=(const Esri::ArcGISRuntime::LicenseInfo &other)
    virtual ~LicenseInfo() override
    bool isEmpty() const

    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(Esri::ArcGISRuntime::LicenseInfo &&other)

    Move constructor from other LicenseInfo.

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

    Copy constructor from other LicenseInfo.


    Default constructor.

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

    Move operator from other LicenseInfo.

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

    Assignment operator from other LicenseInfo.

    [override virtual] LicenseInfo::~LicenseInfo()


    [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.

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