Contains information for licensing an app for Lite or Basic-level functionality from a portal instance. More...
Header | #include <License |
Since | Esri |
Inherits | Esri |
Public Functions
License | |
License | |
License | |
virtual | ~ |
bool | is |
Esri | operator=( |
Esri | operator=(const Esri |
Reimplemented Public Functions
virtual Q | to |
(deprecated) virtual Q | unknown |
(deprecated) virtual Q | unsupported |
Static Public Members
Esri | from |
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.
[noexcept]
LicenseInfo::LicenseInfo (Esri::ArcGISRuntime::LicenseInfo &&other)
Move constructor from other LicenseInfo.
[override virtual noexcept]
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.
[noexcept]
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.