OfflineEngineUploadDelegate

class OfflineEngineUploadDelegate(attachmentManager: ZyncAttachmentManager) : ZyncUploadDelegate

Implementation of ZyncUploadDelegate that provides upload functionality to the offline engine.

This allows the offline engine's PendingUpdatesWorker to request immediate uploads from Zync when it needs attachments uploaded before proceeding with API calls.

Parameters

attachmentManager

The Zync attachment manager instance

Constructors

Link copied to clipboard
constructor(attachmentManager: ZyncAttachmentManager)

Functions

Link copied to clipboard
open suspend override fun uploadFileImmediately(filePath: String, module: String, moduleUid: String, attachmentType: String): ZyncUploadDelegate.UploadResult

Upload a single file immediately. For single file uploads, prefer using uploadFilesImmediately with a single-item list as it provides better performance and consistency.

Link copied to clipboard
open suspend override fun uploadFilesImmediately(filePaths: List<String>, module: String, moduleUid: String, attachmentType: String): ZyncUploadDelegate.UploadResult

Upload a batch of files immediately. This is the primary method for offline engine integration as it allows uploading multiple attachment files in a single operation.