ArcGIS Runtime SDK for iOS: AGSOfflineMapParametersKey Class Reference
ArcGIS Runtime SDK for iOS  100.9
AGSOfflineMapParametersKey Class Reference

Description

Represents a key associated with a generate offline map parameters override.

Instances of this class represent a key associated with a generate offline map parameters overrides, used to get the specific parameters, for a given online service, from one of the dictionaries exposed by an AGSGenerateOfflineMapParameterOverrides.

Generate offline map parameters overrides consist of instances of AGSGenerateGeodatabaseParameters, AGSExportTileCacheParameters and AGSExportVectorTilesParameters. Each instance is associated with the service URL that the parameters will be sent to for taking the given data offline. The data type specific parameters can be retrieved from their respective dictionaries on AGSGenerateOfflineMapParameterOverrides with an instance of AGSOfflineMapParametersKey. A key instance for a particular layer can be constructed by calling initWithLayer: (AGSOfflineMapParametersKey). For a service feature table, call initWithServiceFeatureTable: (AGSOfflineMapParametersKey). Use the key with the dictionary returned by one of these properties: AGSGenerateOfflineMapParameterOverrides::generateGeodatabaseParameters, AGSGenerateOfflineMapParameterOverrides::exportVectorTilesParameters, AGSGenerateOfflineMapParameterOverrides::exportTileCacheParameters. The particular method to call will be determined by the AGSOfflineMapParametersKey::type property. Note that a given parameters key/value pair may be shared by multiple layers in the map: for example a single AGSGenerateGeodatabaseParameters object could represent the online settings for multiple feature layers which all access the same underlying feature service.

Since
100.4
Inheritance diagram for AGSOfflineMapParametersKey:
AGSObject

Instance Methods

(instancetype) - initWithLayer:
 
(instancetype) - initWithServiceFeatureTable:
 
(BOOL) - isEqualToOfflineMapParametersKey:
 

Class Methods

(instancetype) + offlineMapParametersKeyWithLayer:
 
(instancetype) + offlineMapParametersKeyWithServiceFeatureTable:
 

Properties

NSURL * serviceURL
 
AGSOfflineMapParametersType type
 

Method Documentation

§ initWithLayer:()

- (instancetype) initWithLayer: (AGSLayer *)  layer

Initialize the offline map parameters key with a layer.

Parameters
layerThe layer that you want the offline map parameters key for.
Returns
initialized parameters key
Since
100.4

§ initWithServiceFeatureTable:()

- (instancetype) initWithServiceFeatureTable: (AGSServiceFeatureTable *)  serviceFeatureTable

Initialize the offline map parameters key with a service feature table.

Parameters
serviceFeatureTableThe service feature table that you want the offline map parameters key for.
Returns
initialized parameters key
Since
100.4

§ isEqualToOfflineMapParametersKey:()

- (BOOL) isEqualToOfflineMapParametersKey: (AGSOfflineMapParametersKey *)  other

Compares whether this offline map parameters key is equal to another

Parameters
otherkey to compare this one to
Returns
whether the two keys are equal
Since
100.4

§ offlineMapParametersKeyWithLayer:()

+ (instancetype) offlineMapParametersKeyWithLayer: (AGSLayer *)  layer

Initialize the offline map parameters key with a layer.

Parameters
layerThe layer that you want the offline map parameters key for.
Returns
initialized parameters key
Since
100.4

§ offlineMapParametersKeyWithServiceFeatureTable:()

+ (instancetype) offlineMapParametersKeyWithServiceFeatureTable: (AGSServiceFeatureTable *)  serviceFeatureTable

Initialize the offline map parameters key with a service feature table.

Parameters
serviceFeatureTableThe service feature table that you want the offline map parameters key for.
Returns
initialized parameters key
Since
100.4

Property Documentation

§ serviceURL

- (NSURL*) serviceURL
readnonatomicstrong

Get service URL of this key. The service URL is the URL associated with a data specific parameter object in one of the dictionaries owned by an AGSGenerateOfflineMapParameterOverrides instance.

Since
100.4

§ type

- (AGSOfflineMapParametersType) type
readnonatomicassign

Get the parameter type of this key. The type of this key indicates which AGSGenerateOfflineMapParameterOverrides dictionary this key belongs to.

Since
100.4