Module com.esri.arcgisruntime
Class DownloadPreplannedOfflineMapResult
java.lang.Object
com.esri.arcgisruntime.tasks.offlinemap.DownloadPreplannedOfflineMapResult
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 individual layer errors
and
table 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.
- Since:
- 100.2.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets the errors for any layers that were not taken offline.Gets the mobile map package containing the requested offline map.Gets the offline map containing the requested preplanned map area.Gets the errors for any tables that were not taken offline.boolean
Indicates if any layers or tables were not taken offline.
-
Method Details
-
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
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
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
Gets the mobile map package containing the requested offline map.- Returns:
- the mobile map package
- Since:
- 100.2.0
-
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
-