GiphyMediaAttachmentViewStyle

class GiphyMediaAttachmentViewStyle(val progressIcon: Drawable, val giphyIcon: Drawable, val placeholderIcon: Drawable, @ColorInt val imageBackgroundColor: Int, val giphyType: GiphyInfoType, val scaleType: ImageView.ScaleType, val sizingMode: GiphySizingMode, val width: Int, val height: Int, val dimensionRatio: Float)

Sets the style for io.getstream.chat.android.ui.feature.messages.list.adapter.view.internal.GiphyMediaAttachmentView by obtaining styled attributes.

Parameters

progressIcon

Displayed while the Giphy is Loading.

giphyIcon

Displays the Giphy logo over the Giphy image.

placeholderIcon

Displayed while the Giphy is Loading.

imageBackgroundColor

Sets the background colour for the Giphy container.

giphyType

Sets the Giphy type which directly affects image quality and if the container is resized or not.

scaleType

Sets the scaling type for loading the image. E.g. 'centerCrop', 'fitCenter', etc...

sizingMode

Sets the way the Giphy container scales itself, either adaptive or of a fixed size.

width

Sets the width of the Giphy container. This value is ignored if Giphys are adaptively sized.

height

Sets the height of the Giphy container. This value is ignored if Giphys are adaptively sized.

dimensionRatio

Sets the dimension ratio of the Giphy container. This value is ignored if Giphys are adaptively sized.

Constructors

Link copied to clipboard
constructor(progressIcon: Drawable, giphyIcon: Drawable, placeholderIcon: Drawable, @ColorInt imageBackgroundColor: Int, giphyType: GiphyInfoType, scaleType: ImageView.ScaleType, sizingMode: GiphySizingMode, width: Int, height: Int, dimensionRatio: Float)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val width: Int