syncGeodatabase method

SyncGeodatabaseJob syncGeodatabase(
  1. {required SyncGeodatabaseParameters parameters,
  2. required Geodatabase geodatabase}
)

Returns a job to synchronize a geodatabase back to its source ArcGIS feature service.

For a successfully completed job the job's result returns an array of SyncLayerResult, typically the array is empty. If individual edits failed then the result array provides these errors grouped by each table using SyncLayerResult instances which in turn contain each edit error.

You should not execute more than one sync on a particular geodatabase at the same time. This includes any operations that export or import deltas from the local Geodatabase, which are:

Parameters:

  • parameters — Parameters to use to sync the geodatabase.
  • geodatabase — The geodatabase to sync.

Return Value: A job to synchronize a geodatabase.

Implementation

SyncGeodatabaseJob syncGeodatabase(
    {required SyncGeodatabaseParameters parameters,
    required Geodatabase geodatabase}) {
  final objectHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_GeodatabaseSyncTask_syncGeodatabase(
        _handle, parameters._handle, geodatabase._handle, errorHandler);
  });
  return SyncGeodatabaseJob._fromHandle(objectHandle)!;
}