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 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 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() and getTableErrors() 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