Class OfflineMapCapabilities

java.lang.Object
com.esri.arcgisruntime.tasks.offlinemap.OfflineMapCapabilities

public final class OfflineMapCapabilities extends Object
Represents the capability of taking an online map's layers and tables offline.
Since:
100.1.0
See Also:
  • Method Details

    • hasErrors

      public boolean hasErrors()
      Indicates whether the map contains any layers or tables that cannot be taken offline.

      This is not relevant to offline maps that reference online-only layers and tables. Setting GenerateOfflineMapParameters.getOnlineOnlyServicesOption() to GenerateOfflineMapParameters.OnlineOnlyServicesOption.INCLUDE will allow online-only data to be included in the offline map and referenced by URL.

      Returns:
      false if all layers and tables can be taken offline, true if errors occurred when checking them or any layer or table doesn't support being taken offline
      Since:
      100.1.0
    • getLayerCapabilities

      public Map<Layer,OfflineCapability> getLayerCapabilities()
      Gets the offline capabilities for all layers in the online map. This method returns an associative array (java.util.Map) that maps layer instances to offline capability. The associative array has keys of type Layer and values of type OfflineCapability.
      Returns:
      an unmodifiable java.util.Map; the keys are Layer and the values are OfflineCapability objects representing the capabilities of the layers
      Since:
      100.1.0
    • getTableCapabilities

      public Map<FeatureTable,OfflineCapability> getTableCapabilities()
      Gets the offline capabilities for all tables in the online map. This method returns an associative array (java.util.Map) that maps tables instances to offline capability. The associative array has keys of type Layer and values of type OfflineCapability.
      Returns:
      an unmodifiable java.util.Map; the keys are FeatureTables and the values are OfflineCapability objects representing the capabilities of the tables
      Since:
      100.1.0