addSwipe
fun RecyclerView?.addSwipe(context: Context, leftAction: (swipedPosition: Int) -> Unit = { _ -> }, rightAction: (swipedPosition: Int) -> Unit = { _ -> }, recyclerSwipeItemHandler: RecyclerSwipeItemHandler.() -> Unit)
Extension function for recyclerSwipe
Receiver
RecyclerView
Parameters
context
we're passing separate context due to RecyclerView sometimes not providing context, weird I know
leftAction
Function1<@kotlin.ParameterName Int, Unit>
rightAction
Function1<@kotlin.ParameterName Int, Unit>
recyclerSwipeItemHandler
@kotlin.ExtensionFunctionType Function1