getOfflineMapCapabilities method
- {required GenerateOfflineMapParameters parameters}
Returns an async Future which, when successful, returns the
OfflineMapCapabilities
containing information on which layers will be
included in an offline map.
Parameters:
parameters
— The parameters for taking a map offline.
Return Value: A Future containing an element of type
OfflineMapCapabilities
.
Implementation
Future<OfflineMapCapabilities> getOfflineMapCapabilities(
{required GenerateOfflineMapParameters parameters}) {
final taskHandle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_OfflineMapTask_getOfflineMapCapabilitiesAsync(
_handle, parameters._handle, errorHandler);
});
return taskHandle
.toFuture((element) => element.getValueAsOfflineMapCapabilities()!);
}