features/characters_favorites / com.vmadalin.dynamicfeatures.charactersfavorites.ui.favorite.adapter / CharactersFavoriteTouchHelper / onMove

onMove

fun onMove(recyclerView: RecyclerView, viewHolder: ViewHolder, target: ViewHolder): Boolean

Called when ItemTouchHelper wants to move the dragged item from its old position to the new position.

Parameters

recyclerView - The RecyclerView to which ItemTouchHelper is attached to.

viewHolder - The ViewHolder which is being dragged by the user.

target - The ViewHolder over which the currently active item is being dragged.

Return
True if the viewHolder has been moved to the adapter position.

See Also

ItemTouchHelper.SimpleCallback.onMove