RecentConversationsAdapter

Author

Alper Sahin An adapter class for populating a RecyclerView with a list of recent chat conversations.

Parameters

chatMessages

The list of chat messages representing recent conversations.

conversionListener

The listener to handle conversation item click events.

Constructors

Link copied to clipboard
constructor(chatMessages: List<ChatMessage>, conversionListener: ConversionListener)

Types

Link copied to clipboard

Inner class representing a ViewHolder for a recent conversation item in the RecyclerView.

Functions

Link copied to clipboard
open override fun getItemCount(): Int

Returns the number of items in the adapter's data set.

Link copied to clipboard
open fun getItemId(p0: Int): Long
Link copied to clipboard
open fun getItemViewType(p0: Int): 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
fun notifyItemMoved(p0: Int, p1: 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
Link copied to clipboard

Creates and returns a new UserViewHolder instance for the RecyclerView.

Link copied to clipboard
open fun setHasStableIds(p0: Boolean)