onClick

open fun onClick(position: Int, carouselItem: CarouselItem)

When an item view is clicked it will be invoked.

Note: It will not work for the custom layout.

Parameters

position

Data item position.

carouselItem

Data item of the clicked view.