onSwipeCompleted

open fun onSwipeCompleted(model: T, itemView: View, position: Int, direction: Int)

Called after onSwipeReleased if the swipe surpassed the threshold tobe considered a full swipe. The view will now be animated off screen.

You MUST use this callback to remove this item from your backing data and request a modelupdate.

clearView will be called after this.

Parameters

model

The model representing the view that was being swiped

itemView

The view that was being swiped

position

The adapter position of the model

direction

The direction that the view was swiped. Can be any of , RIGHT, , DOWN depending on what swipedirections were enabled.