getOfflineMapCapabilitiesCancelable method

CancelableOperation<OfflineMapCapabilities> getOfflineMapCapabilitiesCancelable(
  1. {required GenerateOfflineMapParameters parameters}
)

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

Implementation

CancelableOperation<OfflineMapCapabilities>
    getOfflineMapCapabilitiesCancelable(
        {required GenerateOfflineMapParameters parameters}) {
  final taskHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_OfflineMapTask_getOfflineMapCapabilitiesAsync(
        _handle, parameters._handle, errorHandler);
  });
  return taskHandle.toCancelableOperation(
      (element) => element.getValueAsOfflineMapCapabilities()!);
}