FileAttachmentFactory
constructor(showFileSize: (Attachment) -> Boolean = { true }, onContentItemClick: (previewHandlers: List<AttachmentPreviewHandler>, attachment: Attachment) -> Unit = ::onFileAttachmentContentItemClick, canHandle: (attachments: List<Attachment>) -> Boolean = { attachments ->
attachments.any(Attachment::isAnyFileType)
})
Parameters
showFileSize
Lambda that determines whether to show the file size in the attachment content.
onContentItemClick
Lambda called when an item gets clicked.
canHandle
Lambda that checks if the factory can handle the given attachments.