attachmentSyncDirection property

AttachmentSyncDirection 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.

Layer Attachment Option Valid Attachment Sync Direction Note
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.

Implementation

AttachmentSyncDirection get attachmentSyncDirection {
  final coreValue = _withThrowingErrorHandler((errorHandler) {
    return runtimecore
        .RT_GenerateOfflineMapParameters_getAttachmentSyncDirection(
            _handle, errorHandler);
  });
  return AttachmentSyncDirection._fromCoreValue(coreValue);
}
void attachmentSyncDirection=(AttachmentSyncDirection value)

Implementation

set attachmentSyncDirection(AttachmentSyncDirection value) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_GenerateOfflineMapParameters_setAttachmentSyncDirection(
        _handle, value.coreValue, errorHandler);
  });
}