epoxy-adapter / com.airbnb.epoxy / EpoxyDragCallback / onDragStarted

onDragStarted

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

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

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

Parameters

model - T: The model representing the view that is being dragged

itemView - View!: The view that is being dragged

adapterPosition - Int: The adapter position of the model