on Bind View Holder
open override fun onBindViewHolder(context: Context, cards: List<Card>, viewHolder: ContentCardViewHolder, adapterPosition: Int)
Called to display the data at the specified adapter position. This method should update the contents of the ContentCardViewHolder.itemView to reflect the item at the given adapter position.
See also
Recycler View. Adapter. on Bind View Holder
Parameters
context
The application context.
cards
The collection of card items in the adapter. Should not be modified.
view Holder
The ContentCardViewHolder which should be updated to represent the contents of the item at the given adapter position.
adapter Position
The position of the item within the adapter's card items.