Namespace PowerSync.Common.Attachments
Classes
- Attachment
An attachment record persisted in the local database.
- AttachmentQueue
Manages the lifecycle and synchronization of attachments between local and remote storage. Provides automatic synchronization, upload/download queuing, attachment monitoring, verification and repair of local files, and cleanup of archived attachments.
- AttachmentQueueOptions
Options for configuring an AttachmentQueue instance.
- FileManagerLocalStorage
Default ILocalStorageAdapter backed by System.IO. Files are written under AttachmentsDirectory.
- WatchedAttachmentItem
An attachment reference in your application's data model.
Interfaces
- IAttachmentErrorHandler
Provides custom error handling for attachment sync operations. Implementations determine whether failed operations should be retried or archived.
- ILocalStorageAdapter
Local file storage operations used by AttachmentQueue. Implementations handle file I/O, directory management, and storage initialization.
- IRemoteStorageAdapter
Remote storage operations used by AttachmentQueue. Implementations handle uploading, downloading, and deleting files from remote storage.
Enums
- AttachmentState
Represents the current synchronization state of an attachment.