OfflineMapSyncTask.withMap constructor
- ArcGISMap arcGISMap
Creates an offline map sync task for synchronizing the geodatabases used by a map.
Parameters:
arcGISMap
— Map to synchronize.
Implementation
factory OfflineMapSyncTask.withMap(ArcGISMap arcGISMap) {
_initializeArcGISEnvironmentIfNeeded();
final handle = _withThrowingErrorHandler((errorHandler) {
return runtimecore.RT_OfflineMapSyncTask_createWithMap(
arcGISMap._handle, errorHandler);
});
final OfflineMapSyncTask object = OfflineMapSyncTask._withHandle(handle);
object._arcGISMap.cache(arcGISMap);
return object;
}