fun onSwiped(viewHolder: ViewHolder, direction: Int): Unit
Called when a ViewHolder is swiped by the user.
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