attachmentSyncDirection property

AttachmentSyncDirection attachmentSyncDirection

Specifies the direction for attachments to be synchronized.

This parameter is available when the service resource sync capabilities includes supportsAttachmentsSyncDirection. This parameter defines how attachments will be synced and is only applicable if the feature service has attachments. AttachmentSyncDirection.bidirectional - Attachment edits can be both uploaded from the client and downloaded from the service when syncing. AttachmentSyncDirection.upload - Attachment edits can only be uploaded from the client when syncing. This is useful in cases where the data collector does not want to consume space with attachments from the service, but does need to collect new attachments. AttachmentSyncDirection.none - Attachment edits are never synced from either the client or the server. When GenerateGeodatabaseParameters.returnAttachments is set to true, you can set GenerateGeodatabaseParameters.attachmentSyncDirection to either AttachmentSyncDirection.bidirectional (default) or AttachmentSyncDirection.upload. In this case, create replica includes attachments from the service. When GenerateGeodatabaseParameters.returnAttachments is set to false, you can set GenerateGeodatabaseParameters.attachmentSyncDirection to either AttachmentSyncDirection.upload or AttachmentSyncDirection.none (default). In this case, the geodatabase does not include attachments from the service. Attachment sync direction is set during the GeodatabaseSyncTask.generateGeodatabase operation and cannot be overridden during GeodatabaseSyncTask.syncGeodatabase.

Implementation

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

Implementation

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