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

onSwiped

fun onSwiped(viewHolder: ViewHolder, direction: Int): Unit

Called when a ViewHolder is swiped by the user.

Parameters

viewHolder - The ViewHolder which has been swiped by the user.

direction - The direction to which the ViewHolder is swiped. It is one of ItemTouchHelper.UP, ItemTouchHelper.DOWN, ItemTouchHelper.LEFT or ItemTouchHelper.RIGHT.

See Also

ItemTouchHelper.SimpleCallback.onSwiped