onClick

abstract fun onClick(model: T, parentView: V, clickedView: View, position: Int)

Called when the view bound to the model is clicked.

Parameters

model

The model that the view is bound to.

parentView

The view bound to the model which received the click.

clickedView

The view that received the click. This is either a child of the parentViewor the parentView itself

position

The position of the model in the adapter.