CarouselListener

Functions

Link copied to clipboard
open fun onBindViewHolder(binding: ViewBinding, item: CarouselItem, position: Int)

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

Link copied to clipboard
open fun onClick(position: Int, carouselItem: CarouselItem)

When an item view is clicked it will be invoked.

Link copied to clipboard
open fun onCreateViewHolder(layoutInflater: LayoutInflater, parent: ViewGroup): ViewBinding?

Inflate custom view here using view binding. It's mapped with RecyclerView.Adapter#onCreateViewHolder.

Link copied to clipboard
open fun onLongClick(position: Int, carouselItem: CarouselItem)

When an item view is long clicked it will be invoked.