Class DownloadPreplannedOfflineMapResult
- java.lang.Object
-
- com.esri.arcgisruntime.tasks.offlinemap.DownloadPreplannedOfflineMapResult
-
public final class DownloadPreplannedOfflineMapResult extends Object
Represents the result of a DownloadPreplannedOfflineMapJob created by an OfflineMapTask.When the job completes it returns the offline map and indicates using
hasErrors()
whether any errors occurred during the download process. Examine the individuallayer errors
andtable errors
to identify the source of the problem. For example the loss of the online service, a layer or table may not be taken offline, or export tiles has not been enabled on the layer.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Layer,ArcGISRuntimeException>
getLayerErrors()
Gets the errors for any layers that were not taken offline.MobileMapPackage
getMobileMapPackage()
Gets the mobile map package containing the requested offline map.ArcGISMap
getOfflineMap()
Gets the offline map containing the requested preplanned map area.Map<FeatureTable,ArcGISRuntimeException>
getTableErrors()
Gets the errors for any tables that were not taken offline.boolean
hasErrors()
Indicates if any layers or tables were not taken offline.
-
-
-
Method Detail
-
hasErrors
public boolean hasErrors()
Indicates if any layers or tables were not taken offline.To determine which layers or tables could not be taken offline, use
getLayerErrors()
andgetTableErrors()
respectively.- Returns:
- true if any layer or table was not taken offline, false if they were all taken offline successfully
- Since:
- 100.2.0
-
getLayerErrors
public Map<Layer,ArcGISRuntimeException> getLayerErrors()
Gets the errors for any layers that were not taken offline.- Returns:
- an unmodifiable Map; the keys are Layers that were not taken offline and the values are ArcGISRuntimeExceptions representing errors associated with the layers
- Since:
- 100.2.0
-
getTableErrors
public Map<FeatureTable,ArcGISRuntimeException> getTableErrors()
Gets the errors for any tables that were not taken offline.- Returns:
- an unmodifiable Map; the keys are FeatureTables that were not taken offline and the values are ArcGISRuntimeExceptions representing errors associated with the tables
- Since:
- 100.2.0
-
getMobileMapPackage
public MobileMapPackage getMobileMapPackage()
Gets the mobile map package containing the requested offline map.- Returns:
- the mobile map package
- Since:
- 100.2.0
-
getOfflineMap
public ArcGISMap getOfflineMap()
Gets the offline map containing the requested preplanned map area. This map contains layers that reference only offline layers and tables so that the map can be accessed without network connectivity.- Returns:
- the offline map
- Since:
- 100.2.0
-
-