onBindViewHolder

open fun onBindViewHolder(@NonNull holder: BaseViewHolder<BaseMessage>, position: Int)

Called by RecyclerView to display the data at the specified position. This method should update the contents of the itemView to reflect the item at the given position.

Parameters

holder

The < which should be updated to represent the contents of the item at the given position in the data set.

position

The position of the item within the adapter's data set.