onSwipeChanged

abstract fun onSwipeChanged(viewHolder: SwipeViewHolder, adapterPosition: Int, dX: Float, totalDeltaX: Float)

Invoked after a swipe has been detected, and movement is occurring.

Parameters

viewHolder

The view holder that is being swiped.

adapterPosition

The internal adapter position of the item being bound.

dX

The change from the previous swipe touch event to the current.

totalDeltaX

The change from the first touch event to the current.