Module com.esri.arcgisruntime
Class OfflineCapability
java.lang.Object
com.esri.arcgisruntime.tasks.offlinemap.OfflineCapability
Describes whether a layer or table can be included in an offline map.
- Since:
- 100.1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetError()
Gets the error if the layer or table could not be included in the offline map, ornull
if no error occurred.boolean
Indicates if this online only layer or table will be referenced from an offline map.boolean
Indicates if the layer or table supports being taken offline.
-
Method Details
-
getError
Gets the error if the layer or table could not be included in the offline map, ornull
if no error occurred.- Returns:
- an ArcGISRuntimeException describing the error, or null if no error occurred for the layer or table
- Since:
- 100.1.0
-
isSupportsOffline
public boolean isSupportsOffline()Indicates if the layer or table supports being taken offline. Note that if this property is false andGenerateOfflineMapParameters.getOnlineOnlyServicesOption()
is set toGenerateOfflineMapParameters.OnlineOnlyServicesOption.INCLUDE
, theisRemainsOnline()
property may indicate that the layer or table will remain online and be referenced by the offline map.- Returns:
- true if the layer or table supports being taken offline, false if it doesn't support being taken offline or an error occurred when checking it
- Since:
- 100.1.0
- See Also:
-
isRemainsOnline
public boolean isRemainsOnline()Indicates if this online only layer or table will be referenced from an offline map. This relates to theGenerateOfflineMapParameters.getOnlineOnlyServicesOption()
property. IfGenerateOfflineMapParameters.getOnlineOnlyServicesOption()
is set toGenerateOfflineMapParameters.OnlineOnlyServicesOption.EXCLUDE
, this property will always be false. IfGenerateOfflineMapParameters.getOnlineOnlyServicesOption()
is set toGenerateOfflineMapParameters.OnlineOnlyServicesOption.INCLUDE
, this property may be true for layers that cannot be taken offline.- Returns:
- indicates if this online only layer or table will be referenced from an offline map
- Since:
- 100.9.0
-