- All Implemented Interfaces:
Contains information for licensing an app from a portal instance. To license an application from a portal, you need a LicenseInfo instance. This can be obtained by calling
Portal.fetchLicenseInfoAsync(). The LicenseInfo can then be used to authorize this app by calling
ArcGISRuntimeEnvironment.setLicense(LicenseInfo). Note that
LicenseInfois only available when a user is logged in to the portal.
The use of some members in this API requires a specific license level. Please refer to Licensing details by class.
Method SummaryModifier and TypeMethodDescription
static LicenseInfoCreates a LicenseInfo instance from a JSON string.LicenseInfos never have any unknown JSON so this returns an empty Map.LicenseInfos never have any unsupported JSON so this returns an empty Map.
toJson()Returns the LicenseInfo as a JSON string representation.
fromJsonCreates a LicenseInfo instance from a JSON string.
toJsonpublic final String toJson()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(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. This approach is particularly useful for licensing an app when there is no network connection available.
getUnknownJsonLicenseInfos never have any unknown JSON so this returns an empty Map.
getUnsupportedJsonLicenseInfos never have any unsupported JSON so this returns an empty Map.