LinkAttachmentFactory
class LinkAttachmentFactory(linkDescriptionMaxLines: Int, onContentItemClick: (context: Context, previewUrl: String) -> Unit = ::onLinkAttachmentContentClick) : AttachmentFactory
An AttachmentFactory that validates attachments as images and uses LinkAttachmentContent to build the UI for the message.
Has no "preview content", given that this attachment only exists after being sent.
Parameters
linkDescriptionMaxLines
The limit of how many lines we show for the link description.
onContentItemClick
Lambda called when an item gets clicked.
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