-
public final class GiphyAttachmentContentKt
-
-
Method Summary
Modifier and Type Method Description final static UnitGiphyAttachmentContent(AttachmentState attachmentState, Modifier modifier, GiphyInfoType giphyInfoType, GiphySizingMode giphySizingMode, ContentScale contentScale, Function2<Context, String, Unit> onItemClick)Builds a Giphy attachment message. final static UnitGiphyAttachmentContent(AttachmentState state, Modifier modifier, GiphyInfoType giphyInfoType, GiphySizingMode giphySizingMode, ContentScale contentScale, Function1<GiphyAttachmentClickData, Unit> onItemClick)Builds a Giphy attachment message. -
-
Method Detail
-
GiphyAttachmentContent
@Composable()@Deprecated(message = Use GiphyAttachmentContent version with the `onItemClick` parameter that accepts a GiphyAttachmentClickData., replaceWith = @ReplaceWith(imports = {}, expression = GiphyAttachmentContent(state = state, modifier = modifier, giphyInfoType = giphyInfoType, giphySizingMode = giphySizingMode, contentScale = contentScale, onItemClick = onItemClick)), level = DeprecationLevel.WARNING) final static Unit GiphyAttachmentContent(AttachmentState attachmentState, Modifier modifier, GiphyInfoType giphyInfoType, GiphySizingMode giphySizingMode, ContentScale contentScale, Function2<Context, String, 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:
attachmentState-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.onItemClick- Lambda called when an item gets clicked.
-
GiphyAttachmentContent
@Composable() final static Unit GiphyAttachmentContent(AttachmentState state, Modifier modifier, GiphyInfoType giphyInfoType, GiphySizingMode giphySizingMode, ContentScale contentScale, 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.onItemClick- Lambda called when an item gets clicked.
-
-
-
-