UploadAttachmentFactory
constructor(onContentItemClick: (Attachment, List<AttachmentPreviewHandler>) -> Unit = ::onFileUploadContentItemClick, canHandle: (attachments: List<Attachment>) -> Boolean = { attachments -> attachments.any(Attachment::isUploading) })
Parameters
onContentItemClick
Lambda called when an item gets clicked.
canHandle
Lambda that checks if the factory can handle the given attachments.