ArcGIS Runtime SDK for iOS: AGSLicenseInfo Class Reference
ArcGIS Runtime SDK for iOS  100.11
AGSLicenseInfo Class Reference

Description

A class that contains information pertaining to a licensed named user.

Instances of this class contain encrypted information pertaining to a licensed named user. It is available on AGSPortalInfo::licenseInfo after a user successfully signs in to a portal (AGSPortal).

You can persist this object to disk by serializing it to JSON. This is useful when you want to license the app in situations where there isn't any network connectivity. For example, say the user signed in to the portal when the app initially had a network connection, but then later restarted the app when there was no network connectivity. To support licensing the app in an offline environment, you can serialize the license info to JSON on disk when the user first logs into the portal. You can then deserialize the license info from disk when the app is restarted in an offline environment and use it to license the app. This manner of licensing the app in an offline environment is supported for up to 30 days since the license info was made available by logging into the portal.

Since
100
Inheritance diagram for AGSLicenseInfo:
AGSObject <AGSJSONSerializable>

Instance Methods

(nullable id) - toJSON:
 

Class Methods

(nullable id< AGSJSONSerializable >) + fromJSON:error:
 

Properties

NSDictionary< NSString *, id > * unknownJSON
 
NSDictionary< NSString *, id > * unsupportedJSON
 

Method Documentation

◆ fromJSON:error:

+ (nullable id<AGSJSONSerializable>) fromJSON: (id)  JSONObject
error: (NSError **)  error 
staticrequiredinherited

Initializes and returns an object from its JSON representation.

Parameters
JSONObjectNSDictionary or NSArray containing the JSON.
errorencountered during the operation, if any.
Since
100

◆ toJSON:

- (nullable id) toJSON: (NSError **)  error
requiredinherited

Returns JSON representation for this object.

Parameters
errorencountered during the operation, if any.
Returns
NSDictionary or NSArray containing the JSON.
Since
100

Reimplemented in AGSPortalItem.

Property Documentation

◆ unknownJSON

- (NSDictionary<NSString*,id>*) unknownJSON
readrequirednonatomiccopyinherited

A dictionary of values that was in the source JSON but was unparsed by API.

Returns
NSDictionary containing the unknown JSON.
Since
100

◆ unsupportedJSON

- (NSDictionary<NSString*,id>*) unsupportedJSON
readnonatomiccopyinherited

A dictionary of values that are supported by the REST API, but not exposed through the SDK API.

Returns
NSDictionary containing the unsupported JSON.
Since
100