onModelMoved

open fun onModelMoved(fromPosition: Int, toPosition: Int, modelBeingMoved: T, itemView: View)

Called after onDragStarted when the dragged view is dropped toa new position. The EpoxyController will be updated automatically for you to reposition themodels and notify the RecyclerView of the change.

You MUST use this callback to modify your data backing the models to reflect the change.

The next callback in the drag lifecycle will be onDragStarted

Parameters

modelBeingMoved

The model representing the view that was moved

itemView

The view that was moved

fromPosition

The adapter position that the model came from

toPosition

The new adapter position of the model