-
public final class GiphyAttachmentContentKt
-
-
Method Summary
Modifier and Type Method Description final static UnitGiphyAttachmentContent(AttachmentState state, Modifier modifier, GiphyInfoType giphyInfoType, GiphySizingMode giphySizingMode, ContentScale contentScale, Boolean interactive, Function1<GiphyAttachmentClickData, Unit> onItemClick)Builds a Giphy attachment message. -
-
Method Detail
-
GiphyAttachmentContent
@Composable() final static Unit GiphyAttachmentContent(AttachmentState state, Modifier modifier, GiphyInfoType giphyInfoType, GiphySizingMode giphySizingMode, ContentScale contentScale, Boolean interactive, Function1<GiphyAttachmentClickData, Unit> onItemClick)
Builds a Giphy attachment message.
It shows the GIF, as well as a label for users to recognize it's sent from Giphy.
- Parameters:
state-The attachment to show.
modifier- Modifier for styling.giphyInfoType- Used to modify the quality and dimensions of the rendered Giphy attachments.giphySizingMode- Sets the Giphy container sizing strategy.contentScale- Used to determine the way Giphys are scaled inside the Image composable.interactive- Whentrue(default), the container is clickable and long-clickable.onItemClick- Lambda called when an item gets clicked (no-action by default).
-
-
-
-