onFling

abstract fun onFling(velocityX: Int, velocityY: Int): Boolean(source)

Override this to handle a fling given the velocities in both x and y directions. Note that this method will only be called if the associated LayoutManager supports scrolling and the fling is not handled by nested scrolls first.

Return

true if the fling was handled, false otherwise.

Parameters

velocityX

the fling velocity on the X axis

velocityY

the fling velocity on the Y axis