exportDeltaCancelable static method

CancelableOperation<bool> exportDeltaCancelable(
  1. {required Geodatabase geodatabase,
  2. required Uri outputUri}
)

Cancelable version of exportDelta. See that method for more information.

Implementation

static CancelableOperation<bool> exportDeltaCancelable(
    {required Geodatabase geodatabase, required Uri outputUri}) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreOutputUri = _CString(outputUri.toFilePath());
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_GeodatabaseSyncTask_exportDeltaAsync(
        geodatabase._handle, coreOutputUri.bytes, errorHandler);
  });
  return taskHandle
      .toCancelableOperation((element) => element.getValueAsBool()!);
}