FileAttachmentFactory
class FileAttachmentFactory(showFileSize: (Attachment) -> Boolean = { true }, onContentItemClick: (previewHandlers: List<AttachmentPreviewHandler>, attachment: Attachment) -> Unit = ::onFileAttachmentContentItemClick) : AttachmentFactory
An AttachmentFactory that validates attachments as files and uses FileAttachmentContent to build the UI for the message.
Parameters
onContentItemClick
Lambda called when an item gets clicked.
Constructors
Link copied to clipboard
constructor(showFileSize: (Attachment) -> Boolean = { true }, onContentItemClick: (previewHandlers: List<AttachmentPreviewHandler>, attachment: Attachment) -> Unit = ::onFileAttachmentContentItemClick)
Inherited properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val previewContent: @Composable (modifier: Modifier, attachments: List<Attachment>, onAttachmentRemoved: (Attachment) -> Unit) -> Unit? = null
Link copied to clipboard
Link copied to clipboard