Class GiphyAttachmentViewHolder
-
- All Implemented Interfaces:
public final class GiphyAttachmentViewHolder extends DecoratedBaseMessageItemViewHolder<MessageListItem.MessageItem>
Represents the Giphy attachment holder, when the Giphy is already sent.
-
-
Method Summary
Modifier and Type Method Description final <Error class: unknown class>getBinding()ViewmessageContainerView()Returns the Message container that we can use to anchor UI based on its size and position. UnitbindData(MessageListItem.MessageItem data, MessageListItemPayloadDiff diff)Binds the data required to represent a Giphy attachment. -
Methods inherited from class io.getstream.chat.android.ui.feature.messages.list.adapter.BaseMessageItemViewHolder
onAttachedToWindow, onDetachedFromWindow, unbind -
Methods inherited from class androidx.recyclerview.widget.RecyclerView.ViewHolder
getAbsoluteAdapterPosition, getAdapterPosition, getBindingAdapter, getBindingAdapterPosition, getItemId, getItemViewType, getLayoutPosition, getOldPosition, getPosition, isRecyclable, setIsRecyclable, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getBinding
final <Error class: unknown class> getBinding()
-
messageContainerView
View messageContainerView()
Returns the Message container that we can use to anchor UI based on its size and position.
-
bindData
Unit bindData(MessageListItem.MessageItem data, MessageListItemPayloadDiff diff)
Binds the data required to represent a Giphy attachment. Shows the Giphy, applies decorations and the transformations for text and the container shape.
Loads the Giphy once things are set up.
- Parameters:
data- The data that holds all the information required to show a Giphy.diff- The difference from the previous draw.
-
-
-
-