onInterceptTouchEvent
abstract fun onInterceptTouchEvent(@NonNull rv: RecyclerView, @NonNull e: MotionEvent): Boolean(source)
Silently observe and/or take over touch events sent to the RecyclerView before they are handled by either the RecyclerView itself or its child views.
The onInterceptTouchEvent methods of each attached OnItemTouchListener will be run in the order in which each listener was added, before any other touch processing by the RecyclerView itself or child views occurs.
Return
true if this OnItemTouchListener wishes to begin intercepting touch events, false to continue with the current behavior and continue observing future events in the gesture.
Parameters
rv
The RecyclerView whose scroll state has changed.
e
MotionEvent describing the touch event. All coordinates are in the RecyclerView's coordinate system.