MediaAttachmentClickData

Data class that holds all the information required to handle media attachment clicks.

Parameters

mediaGalleryPreviewLauncher

The ManagedActivityResultLauncher to launch the media gallery.

message

The message that holds the clicked attachment.

attachmentPosition

The position of the clicked attachment in the message's attachments list.

videoThumbnailsEnabled

Whether video thumbnails are enabled.

downloadAttachmentUriGenerator

The DownloadAttachmentUriGenerator used to generate URIs for downloading attachments.

downloadRequestInterceptor

The DownloadRequestInterceptor used to intercept download requests.

streamCdnImageResizing

The StreamCdnImageResizing used to resize images.

skipEnrichUrl

Used by the media gallery. If set to true will skip enriching URLs when you update the message by deleting an attachment contained within it. Set to false by default.