-
public final class ComposerLinkPreviewKt
-
-
Method Summary
Modifier and Type Method Description final static UnitComposerLinkPreview(Modifier modifier, LinkPreview linkPreview, Function1<LinkPreview, Unit> onContentClick, Function0<Unit> onCancelClick)Shows the link image preview, the title of the link as well as its description. -
-
Method Detail
-
ComposerLinkPreview
@Composable() final static Unit ComposerLinkPreview(Modifier modifier, LinkPreview linkPreview, Function1<LinkPreview, Unit> onContentClick, Function0<Unit> onCancelClick)
Shows the link image preview, the title of the link as well as its description.
When clicking it, we open the preview link.
- Parameters:
modifier- Modifier for styling.linkPreview-The link preview to show.
onContentClick- The handler called when the content is clicked.onCancelClick- The handler called when the cancel button is clicked.
-
-
-
-