and Callbacks
open fun andCallbacks(callbacks: EpoxyTouchHelper.SwipeCallbacks<U>): ItemTouchHelper
Content copied to clipboard
Set callbacks to handle swipe actions and lifecycle events.
You MUST implement onSwipeCompleted toremove the swiped item from your data and request a model build.
You can optionally implement the other callbacks to modify the view as it is being swiped.
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