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:
OfflineMapTask.getOfflineMapCapabilitiesAsync(GenerateOfflineMapParameters)
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Layer,OfflineCapability>
getLayerCapabilities()
Gets the offline capabilities for all layers in the online map.Map<FeatureTable,OfflineCapability>
getTableCapabilities()
Gets the offline capabilities for all tables in the online map.boolean
hasErrors()
Indicates whether the map contains any layers or tables that cannot be taken offline.
-
-
-
Method Detail
-
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()
toGenerateOfflineMapParameters.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 typeLayer
and values of typeOfflineCapability
.- Returns:
- an unmodifiable java.util.Map; the keys are
Layer
and the values areOfflineCapability
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 typeLayer
and values of typeOfflineCapability
.- 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
-
-