GeodatabaseSyncTask.withUri constructor

GeodatabaseSyncTask.withUri(
  1. Uri uri
)

Creates a geodatabase sync task object using a URL to a sync-enabled ArcGIS feature service.

Parameters:

  • uri — A URL to an ArcGIS feature service with the sync capability enabled.

Implementation

factory GeodatabaseSyncTask.withUri(
  Uri uri,
) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreURI = _CString(uri.toString());
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_GeodatabaseSyncTask_createWithURL(
      coreURI.bytes,
      errorHandler,
    );
  });
  final GeodatabaseSyncTask object = GeodatabaseSyncTask._withHandle(handle);
  object._uri.cache(uri);
  return object;
}