InboxAdapter

abstract class InboxAdapter

Adapter contract for customising the Recycler View adapter. Extend the class and use MoEInboxUiHelper.setInboxAdapter

Author

Arshiya Khanum

Since

1.0.00

Constructors

InboxAdapter
Link copied to clipboard
fun InboxAdapter()

Functions

getItemId
Link copied to clipboard
abstract fun getItemId(position: Int): Long

Called when RecyclerView.Adapter.getItemId is invoked by the actual adapter.

getItemViewType
Link copied to clipboard
abstract fun getItemViewType(position: Int, inboxMessage: InboxMessage): Int

Called when RecyclerView.Adapter.getItemViewType is invoked by the actual adapter.

onBindViewHolder
Link copied to clipboard
abstract fun onBindViewHolder(viewHolder: ViewHolder, position: Int, inboxMessage: InboxMessage, inboxListAdapter: InboxListAdapter)

Called when RecyclerView.Adapter.onBindViewHolder is invoked by the actual adapter.

onCreateViewHolder
Link copied to clipboard
abstract fun onCreateViewHolder(viewGroup: ViewGroup, viewType: Int): ViewHolder

Called when RecyclerView.Adapter.onCreateViewHolder is invoked by the the actual adapter.

Inheritors

DefaultInboxAdapter
Link copied to clipboard