onSwipeStarted

abstract fun onSwipeStarted(viewHolder: SwipeViewHolder, adapterPosition: Int, x: Float? = null, y: Float? = null)

Invoked when a swipe is detected.

Parameters

viewHolder

The view holder that is being swiped.

adapterPosition

The internal adapter position of the item being bound.

x

The raw X of the swipe origin; null may indicate the call isn't from user interaction.

y

The raw Y of the swipe origin; null may indicate the call isn't from user interaction.