attachment Sync Direction
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.None | AttachmentSyncDirection.None | |
AttachmentSyncDirection.Upload | ||
ReturnLayerAttachmentOption.AllLayers | AttachmentSyncDirection.Upload | |
AttachmentSyncDirection.Bidirectional | ||
ReturnLayerAttachmentOption.ReadOnlyLayers | AttachmentSyncDirection.None | Layers with attachments will treat this as AttachmentSyncDirection.Bidirectional |
AttachmentSyncDirection.Upload | ||
AttachmentSyncDirection.Bidirectional | Layers without attachments will treat this as AttachmentSyncDirection.None | |
ReturnLayerAttachmentOption.EditableLayers | AttachmentSyncDirection.None | Layers with attachments will treat this as AttachmentSyncDirection.Bidirectional |
AttachmentSyncDirection.Upload | ||
AttachmentSyncDirection.Bidirectional | Layers without attachments will treat this as AttachmentSyncDirection.None |
If GenerateOfflineMapParameters is used in conjunction with GenerateOfflineMapParameterOverrides this property is superseded.
Since
200.1.0