observeAttachmentChanges

Observe attachment changes and upload progress for a specific module and module UID. The subscription remains active while the returned Flow is collected.

Events emitted:

  • AttachmentsUpdated(updatedAttachments, deletedAttachmentUids): DB/realtime-driven content changes.

  • AttachmentUploadStatusChanged(pendingUpload): Upload status/progress for file operations.

Return

Flow of AttachmentChangeEvent objects

Parameters

module

The module type

moduleUid

The unique identifier of the module instance