attachmentDirectoryName? | string | The name of the directory where attachments are stored on the device, not the full path |
cacheLimit? | number | How many attachments to keep in the cache |
downloadAttachments? | boolean | Should attachments be downloaded |
onDownloadError? | (attachment : AttachmentRecord , exception : any ) => Promise <{ retry : boolean ; }> | How to handle download errors, return { retry: false } to ignore the download |
onUploadError? | (attachment : AttachmentRecord , exception : any ) => Promise <{ retry : boolean ; }> | How to handle upload errors, return { retry: false } to ignore the upload |
performInitialSync? | boolean | Whether to mark the initial watched attachment IDs to be synced |
powersync | AbstractPowerSyncDatabase | - |
storage | StorageAdapter | - |
syncInterval? | number | How often to check for new attachments to sync, in milliseconds. Set to 0 or undefined to disable. |