ExportTileCacheTask constructor
- {required Uri uri}
Create an export tile cache task from a URL.
The map or image service must support tile cache export.
Parameters:
uri
— The URL of an ArcGIS REST service that supports tile cache export.
Implementation
factory ExportTileCacheTask({required Uri uri}) {
_initializeArcGISEnvironmentIfNeeded();
final coreURI = _CString(uri.toString());
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_ExportTileCacheTask_createWithURL(
coreURI.bytes, errorHandler);
});
final ExportTileCacheTask object = ExportTileCacheTask._withHandle(handle);
object._uri.cache(uri);
return object;
}