recyclerSwipe
fun recyclerSwipe(context: Context, leftAction: (swipedPosition: Int) -> Unit = { _ -> }, rightAction: (swipedPosition: Int) -> Unit = { _ -> }, recyclerSwipeItemHandler: RecyclerSwipeItemHandler.() -> Unit): ItemTouchHelper
Don't forget to call ItemTouchHelper.attachToRecyclerView on this since it returns ItemTouchHelper or use addSwipe
Return
ItemTouchHelper
Parameters
context
Context
leftAction
callback of the left swiped position
rightAction
callback of the right swiped position
recyclerSwipeItemHandler
callback to setting things up