showGiphy

fun showGiphy(attachment: Attachment, giphyType: GiphyInfoType = style.giphyType)

Displays a Giphy inside its container. Depending on GiphyMediaAttachmentViewStyle.giphyType it displays the Giphy either inside of a constant height that resizes its width to keep aspect ratio or a resizeable container that is resized according to the GIF.

Parameters

attachment

The attachment holding the Giphy information.

giphyType

The type of Giphy to load. By default we fetch this info from the style.