Class BaseMessageItemViewHolder
-
- All Implemented Interfaces:
public abstract class BaseMessageItemViewHolder<T extends MessageListItem> extends RecyclerView.ViewHolder
Base ViewHolder used for displaying messages in io.getstream.chat.android.ui.feature.messages.list.adapter.internal.MessageListItemAdapter.
-
-
Constructor Summary
Constructors Constructor Description BaseMessageItemViewHolder(View itemView)
-
Method Summary
Modifier and Type Method Description ViewmessageContainerView()Returns the Message container that we can use to anchor UI based on its size and position. abstract UnitbindData(T data, MessageListItemPayloadDiff diff)Unitunbind()UnitonDetachedFromWindow()Called when this view holder and its' view were detached from window. UnitonAttachedToWindow()Called when this view holder and its' view were attached to window. -
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
-
-
Constructor Detail
-
BaseMessageItemViewHolder
BaseMessageItemViewHolder(View itemView)
-
-
Method Detail
-
messageContainerView
View messageContainerView()
Returns the Message container that we can use to anchor UI based on its size and position.
-
bindData
abstract Unit bindData(T data, MessageListItemPayloadDiff diff)
-
onDetachedFromWindow
Unit onDetachedFromWindow()
Called when this view holder and its' view were detached from window.
-
onAttachedToWindow
Unit onAttachedToWindow()
Called when this view holder and its' view were attached to window.
-
-
-
-