AttachmentService

Service for interacting with the local attachment records.

Inheritors

Functions

Link copied to clipboard
abstract fun watchActiveAttachments(): Flow<Unit>

Watcher for changes to attachments table. Once a change is detected it will initiate a sync of the attachments

Link copied to clipboard
abstract suspend fun <R> withContext(action: suspend (context: AttachmentContext) -> R): R

Executes a callback with an exclusive lock on all attachment operations. This helps prevent race conditions between different updates.