Sync Geodatabase Job
The SyncGeodatabaseJob synchronizes changes between a local geodatabase and its sync-enabled ArcGIS feature service. To make a SyncGeodatabaseJob, use the GeodatabaseSyncTask as follows:
Construct and load the GeodatabaseSyncTask with the com.arcgismaps.data.Geodatabase.serviceUrl.
Obtain the default SyncGeodatabaseParameters for the geodatabase by calling GeodatabaseSyncTask.createDefaultSyncGeodatabaseParameters.
Modify the SyncGeodatabaseParameters as required. For example, specify the synchronization direction.
Use the SyncGeodatabaseParameters to create a SyncGeodatabaseJob by calling GeodatabaseSyncTask.createSyncGeodatabaseJob).
Start the SyncGeodatabaseJob and monitor progress. On completion, examine the SyncLayerResult from the SyncGeodatabaseJob.result to determine whether the synchronization was successful.
Since
200.1.0
See also
Properties
Returns information on geodatabase upload and download delta files. When SyncGeodatabaseParameters.keepGeodatabaseDeltas is set to true, this property provides information about the synced geodatabase along with the paths to its uploaded and downloaded deltas.
Inherited properties
Inherited functions
Cancels this Job and waits for any asynchronous, server-side operations to be canceled. The job is canceled and will result in a JobStatus.Failed status after all cancellation tasks have completed. For jobs running on a server, a cancel request is sent for the associated Job.serverJobId. You should always cancel unneeded jobs (for example when exiting your app) to avoid placing unnecessary load on the server. Examples of server-side jobs include:
Initiates a request to check the server status. If the job is polling the server for status and is in a time gap, then calling this method will ensure a request is sent right away. The result can be false if the job is not checking server status for example if the job status is paused or uploading.
Suspends until this job has completed. Calling this function does not start the job. In order to start the job call start