MessageListItemViewHolderFactory
A factory class designed to create ViewHolders for the RecyclerView inside io.getstream.chat.android.ui.feature.messages.list.MessageListView.
Functions
Link copied to clipboard
open fun createViewHolder(parentView: ViewGroup, viewType: Int): BaseMessageItemViewHolder<out MessageListItem>
Creates a new ViewHolder to be used in the Message List. The viewType parameter is determined by getItemViewType.
Link copied to clipboard
Returns a view type value based on the type of the given viewHolder. The view type returned here will be used in MessageListItemAdapter.onBindViewHolder to check if the ViewHolder is of the correct type before binding the item.
Returns a view type value based on the type and contents of the given item. The view type returned here will be used as a parameter in createViewHolder.