returnLayerAttachmentOption

Which feature layers will include attachments when being taken offline. Attachments can be included with none of the layers, all of the layers, read only layers or editable layers. This method should be used in conjunction with GenerateOfflineMapParameters.attachmentSyncDirection to control how the attachments are synced. For offline maps, a feature layer is considered to be editable if the feature service has capabilities that include any of create, update or delete. A read-only layer is one that supports sync, but does not have any of create, update or delete capability. Service capabilities are accessible from service infos see com.arcgismaps.arcgisservices.ArcGISFeatureServiceInfo.featureServiceCapabilities or com.arcgismaps.arcgisservices.ArcGISFeatureLayerInfo.capabilities.

This property works in conjunction with GenerateOfflineMapParameters.attachmentSyncDirection and in some cases may override the value returned by GenerateOfflineMapParameters.attachmentSyncDirection. The table below shows the valid combinations of values for layer attachment options and attachment sync direction. The notes column explains where the behavior for a given layer may differ from the values set for these properties.

ReturnLayerAttachmentOption.Nonecom.arcgismaps.tasks.geodatabase.AttachmentSyncDirection.None
com.arcgismaps.tasks.geodatabase.AttachmentSyncDirection.Upload
ReturnLayerAttachmentOption.AllLayerscom.arcgismaps.tasks.geodatabase.AttachmentSyncDirection.Upload
com.arcgismaps.tasks.geodatabase.AttachmentSyncDirection.Bidirectional
ReturnLayerAttachmentOption.ReadOnlyLayerscom.arcgismaps.tasks.geodatabase.AttachmentSyncDirection.NoneLayers with attachments will treat this as com.arcgismaps.tasks.geodatabase.AttachmentSyncDirection.Bidirectional
com.arcgismaps.tasks.geodatabase.AttachmentSyncDirection.Upload
com.arcgismaps.tasks.geodatabase.AttachmentSyncDirection.BidirectionalLayers without attachments will treat this as com.arcgismaps.tasks.geodatabase.AttachmentSyncDirection.None
ReturnLayerAttachmentOption.EditableLayerscom.arcgismaps.tasks.geodatabase.AttachmentSyncDirection.NoneLayers with attachments will treat this as com.arcgismaps.tasks.geodatabase.AttachmentSyncDirection.Bidirectional
com.arcgismaps.tasks.geodatabase.AttachmentSyncDirection.Upload
com.arcgismaps.tasks.geodatabase.AttachmentSyncDirection.BidirectionalLayers without attachments will treat this as com.arcgismaps.tasks.geodatabase.AttachmentSyncDirection.None

If GenerateOfflineMapParameters is used in conjunction with GenerateOfflineMapParameterOverrides this property is superseded.

Since

200.1.0