Contains information for licensing an app for Lite or Basic-level functionality from a portal instance. More...
| Header | #include <License |
| Since | Esri |
| Inherits | Esri |
This class was introduced in Esri::ArcGISRuntime 100.0.
Public Functions
| License | |
| License | |
| License | |
| Esri | operator=( |
| Esri | operator=(const Esri |
| virtual | ~ |
| bool | is |
Reimplemented Public Functions
| virtual QString | to |
| virtual QJson | unknown |
| virtual QJson | 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 Runtime 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.
LicenseInfo::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 ()
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.