GiphyAttachmentContent
fun GiphyAttachmentContent(state: AttachmentState, modifier: Modifier = Modifier, giphyInfoType: GiphyInfoType = GiphyInfoType.FIXED_HEIGHT_DOWNSAMPLED, giphySizingMode: GiphySizingMode = GiphySizingMode.ADAPTIVE, contentScale: ContentScale = ContentScale.Crop, onItemClick: (GiphyAttachmentClickData) -> Unit = {})
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. Setting it to automatic makes the container capable of adaptive resizing and ignore the default Giphy width and height dimensions, however you can still clip maximum dimensions. Setting it to fixed size mode will make it respect all given dimensions.
contentScale
Used to determine the way Giphys are scaled inside the Image composable.
onItemClick
Lambda called when an item gets clicked (no-action by default).