and Callbacks
open fun andCallbacks(callbacks: EpoxyTouchHelper.DragCallbacks<U>): ItemTouchHelper
Content copied to clipboard
Set callbacks to handle drag actions and lifecycle events.
You MUST implement onModelMoved to update your data to reflect an item move.
You can optionally implement the other callbacks to modify the view being dragged. This isuseful if you want to change things like the view background, size, color, etc
Return
An ItemTouchHelper instance that has been initialized and attached to arecyclerview. The touch helper has already been fully set up and can be ignored, but you maywant to hold a reference to it if you need to later detach the recyclerview to disable touchevents via setting null on attachToRecyclerView