onMoved

abstract fun onMoved(fromPosition: Int, toPosition: Int)(source)

Called when an item changes its position in the list.

Parameters

fromPosition

The previous position of the item before the move.

toPosition

The new position of the item.