onBindViewHolder

open fun onBindViewHolder(binding: ViewBinding, item: CarouselItem, position: Int)

Bind view with data. It's mapped with RecyclerView.Adapter#onBindViewHolder.

Parameters

binding

The ViewBinding returned in onCreateViewHolder.

item

current CarouselItem item for bind.

position

current data position.