attachmentSyncDirection property

AttachmentSyncDirection attachmentSyncDirection

A setting configured by the web map author that provides guidance for how attachments should be synced when working offline.

If this setting is AttachmentSyncDirection.none, then attachments should never be uploaded or downloaded when performing a sync operation.

If this setting is AttachmentSyncDirection.upload, then attachments should be uploaded when performing sync.

If this setting is AttachmentSyncDirection.bidirectional, then attachments should be uploaded and downloaded when performing sync.

This value can be used to set a default for GenerateOfflineMapParameters.attachmentSyncDirection. Alternatively, using OfflineMapTask.createDefaultGenerateOfflineMapParameters will pre-populate the parameters using this property.

Implementation

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