createDefaultOfflineMapSyncParameters method

Future<OfflineMapSyncParameters> createDefaultOfflineMapSyncParameters()

This populates the parameters with values appropriate for synchronizing the feature data in this offline map.

The default parameters will reflect the mobile geodatabases used by the offline map.

Return Value: A Future of OfflineMapSyncParameters.

Implementation

Future<OfflineMapSyncParameters> createDefaultOfflineMapSyncParameters() {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore
        .RT_OfflineMapSyncTask_createDefaultOfflineMapSyncParametersAsync(
      _handle,
      errorHandler,
    );
  });
  return taskHandle.toFuture(
    (element) => element.getValueAsOfflineMapSyncParameters()!,
  );
}