AttachmentStorageHelper
Handles querying device storage for attachment metadata and converting between AttachmentMetaData and the SDK Attachment model.
Parameters
The context of the app, used to fetch files and media.
Queries the device's content providers for files and media.
A filter that is used to filter out attachments that will not be accepted by the backend.
Constructors
Functions
Loads file metadata from the system, filtered against file types accepted by the backend.
Loads media metadata from the system, filtered against file types accepted by the backend.
Partitions metadata into resolvable and unresolvable items.
Resolves deferred attachments by copying their source content into local cache files.
Resolves a list of file Uris into AttachmentMetaData.
Converts a list of AttachmentMetaData into lightweight Attachments for preview.