attachmentSyncDirection

Specifies the direction for attachments to be synchronized when syncing offline feature layers. This method should be used in conjunction with GenerateOfflineMapParameters.returnLayerAttachmentOption to determine which layers should be taken offline with attachments included. This property is valid when the service resource sync capabilities includes supportsAttachmentsSyncDirection otherwise it is ignored.

This property works in conjunction with GenerateOfflineMapParameters.returnLayerAttachmentOption and in some cases may have its value overridden by GenerateOfflineMapParameters.returnLayerAttachmentOption.

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