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

Description

Parameters to synchronize an offline map.

Instances of this class represent parameters that are used with offlineMapSyncJobWithParameters: (AGSOfflineMapSyncTask) to synchronize the data of feature layers and tables in an offline map with their originating ArcGIS Feature services.

Since
100.1
See also
AGSOfflineMapTask to take a map offline
Inheritance diagram for AGSOfflineMapSyncParameters:
AGSObject

Class Methods

(instancetype) + offlineMapSyncParameters
 

Properties

AGSPreplannedScheduledUpdatesOption preplannedScheduledUpdatesOption
 
BOOL rollbackOnFailure
 
AGSSyncDirection syncDirection
 

Method Documentation

§ offlineMapSyncParameters()

+ (instancetype) offlineMapSyncParameters

Property Documentation

§ preplannedScheduledUpdatesOption

- (AGSPreplannedScheduledUpdatesOption) preplannedScheduledUpdatesOption
readwritenonatomicassign

Determines whether scheduled updates will be downloaded from an online map area and applied to the map's data. If the mobile geodatabases in your offline map were not registered for sync you can choose to download and apply those updates by setting this property to AGSPreplannedScheduledUpdatesOptionDownloadAllUpdates.

You specify whether an offline map will make use of scheduled updates by setting the AGSDownloadPreplannedOfflineMapParameters::updateMode property before downloading.

The default value is AGSPreplannedScheduledUpdatesOptionDownloadAllUpdates.

Since
100.6

§ rollbackOnFailure

- (BOOL) rollbackOnFailure
readwritenonatomicassign

Specifies whether all edits are rolled back (not applied) if a failure occurs while importing edits on the server. Otherwise, failed edits are skipped and other edits still applied. The default is false (no rollback on failure).

Note
It only applies to edits uploaded by the client to the server. Does not apply to edits imported by client.
Since
100.1

§ syncDirection

- (AGSSyncDirection) syncDirection
readwritenonatomicassign

The synchronization direction for geodatabases registered with feature services.

This property applies to any geodatabase that is registered for feature service synchronization. It does not apply to geodatabases which use scheduled updates.

The default value is AGSSyncDirectionBidirectional.

If you select AGSSyncDirectionUpload, any download-only geodatabases (e.g. with AGSFeatureServiceCapabilities::supportsUpdate = NO ) will not be updated and you will receive an AGSErrorCodeMappingSyncDirectionUploadNotSupported error in the associated AGSOfflineMapSyncResult::layerResults.

Since
100.1