unregisterGeodatabase method
- {required Geodatabase geodatabase}
Unregisters a geodatabase from its source ArcGIS feature service. This removes the services replica id.
After unregistering a geodatabase it can no longer be synced back to the service. This is often used prior to deleting a local geodatabase. This operation is not related to GeodatabaseSyncTask.registerSyncEnabledGeodatabase, which is for registering copies of a sync-enabled geodatabase.
Parameters:
geodatabase
— a geodatabase to unregister.
Return Value: Returns a task that will unregister a geodatabase, the task does not contain a return value.
Implementation
Future<void> unregisterGeodatabase({required Geodatabase geodatabase}) {
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_GeodatabaseSyncTask_unregisterGeodatabaseAsync(
_handle, geodatabase._handle, errorHandler);
});
return taskHandle.toFuture((_) {});
}