onDragStarted

abstract fun onDragStarted(model: T, itemView: View, adapterPosition: Int)

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

This is the first callback in the lifecycle of a drag event.

Parameters

model

The model representing the view that is being dragged

itemView

The view that is being dragged

adapterPosition

The adapter position of the model