public class

LicenseInfo

extends Object
java.lang.Object
   ↳ com.esri.core.portal.LicenseInfo

Class Overview

This class contains information retrieved from a portal by calling getLicenseInfo(). This can then be used to authenticate the ArcGIS Runtime by calling ArcGISRuntime.License.setLicense(LicenseInfo). Note that this information is only available when a user is logged in to the portal.

Summary

Public Methods
static LicenseInfo fromJson(String data)
Create an instance of this class from a string created by calling toJson().
String toJson()
Write the content of this class to a JSON string.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static LicenseInfo fromJson (String data)

Create an instance of this class from a string created by calling toJson().

Parameters
data String: the saved license information
Returns
LicenseInfo an instance of this class

public String toJson ()

Write the content of this class to a JSON string. This string can then be used to create a new instance of this class later by calling fromJson(String). This string can be reused for up to 30 days from the time an instance of this class was retrieved from the portal.

Returns
String the string