Module com.esri.arcgisruntime
Class OfflineMapCapabilities
java.lang.Object
com.esri.arcgisruntime.tasks.offlinemap.OfflineMapCapabilities
Represents the capability of taking an online map's layers and tables offline.
- Since:
- 100.1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets the offline capabilities for all layers in the online map.Gets the offline capabilities for all tables in the online map.boolean
Indicates whether the map contains any layers or tables that cannot be taken offline.
-
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()
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
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
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
-