Package 

Class LinkAttachmentContentKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit LinkAttachmentContent(AttachmentState attachmentState, Integer linkDescriptionMaxLines, Modifier modifier, Function2<Context, String, Unit> onItemClick) Builds a link attachment message, which shows the link image preview, the title of the link as well as its description.
      final static Unit LinkAttachmentContent(AttachmentState state, Integer linkDescriptionMaxLines, 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • LinkAttachmentContent

        @Composable()@Deprecated(message = Use the version with the `onItemClick` parameter that accepts a LinkAttachmentClickData., replaceWith = @ReplaceWith(imports = {}, expression = LinkAttachmentContent(attachmentState, linkDescriptionMaxLines, modifier, onItemClick))) final static Unit LinkAttachmentContent(AttachmentState attachmentState, Integer linkDescriptionMaxLines, Modifier modifier, Function2<Context, String, 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:
        attachmentState -
        • The state of the attachment, holding the root modifier, the message and the onLongItemClick handler.

        linkDescriptionMaxLines -
        • The limit of how many lines we show for the link description.

        modifier - Modifier for styling.
        onItemClick - Lambda called when an item gets clicked.
      • LinkAttachmentContent

        @Composable() final static Unit LinkAttachmentContent(AttachmentState state, Integer linkDescriptionMaxLines, 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.

        linkDescriptionMaxLines -
        • The limit of how many lines we show for the link description.

        modifier - Modifier for styling.
        onItemClick - Lambda called when an item gets clicked.