onSwipeStarted

open fun onSwipeStarted(model: T, itemView: View, adapterPosition: Int)

Called when the view switches from an idle state to a swiped state, as the user begins a swipeinteraction with it. You can use this callback to modify the view to indicate it is beingswiped.

This is the first callback made in the lifecycle of a swipe event.

Parameters

model

The model representing the view that is being swiped

itemView

The view that is being swiped

adapterPosition

The adapter position of the model