-
public final class LinkAttachmentContentKt
-
-
Method Summary
Modifier and Type Method Description final static UnitLinkAttachmentContent(AttachmentState state, Modifier modifier, Function1<LinkAttachmentClickData, Unit> onItemClick)Builds a link attachment message, which shows the link image preview, the title of the link as well as its description. -
-
Method Detail
-
LinkAttachmentContent
@Composable() final static Unit LinkAttachmentContent(AttachmentState state, Modifier modifier, Function1<LinkAttachmentClickData, Unit> onItemClick)
Builds a link attachment message, which shows the link image preview, the title of the link as well as its description.
When clicking it, we open the preview link.
- Parameters:
state-The state of the attachment, holding the root modifier, the message and the onLongItemClick handler.
modifier- Modifier for styling.onItemClick- Lambda called when an item gets clicked.
-
-
-
-