Package io.getstream.chat.android.ui.utils

Types

Link copied to clipboard
data class GiphyInfo(    val url: String,     @Px val width: Int,     @Px val height: Int)

Contains extra information about Giphy attachments.

Link copied to clipboard
enum GiphyInfoType : Enum<GiphyInfoType>

Enum class that holds a value used to obtain Giphy images of different quality level.

Link copied to clipboard
enum GiphySizingMode : Enum<GiphySizingMode>

Sets the way in which Giphy container sizing is determined.

Properties

Link copied to clipboard
const val GIPHY_INFO_DEFAULT_HEIGHT_DP: Int = 200

Default height used for Giphy Images if no width metadata is available.

Link copied to clipboard
const val GIPHY_INFO_DEFAULT_WIDTH_DP: Int = 200

Default width used for Giphy Images if no width metadata is available.

Functions

Link copied to clipboard
fun Attachment.giphyInfo(field: GiphyInfoType): GiphyInfo?

Returns an object containing extra information about the Giphy image based on its type.