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

Link copied to clipboard
constructor()

Functions

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

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

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

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

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.

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

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