findTargetSnapPosition

abstract fun findTargetSnapPosition(layoutManager: RecyclerView.LayoutManager, velocityX: Int, velocityY: Int): Int(source)

Override to provide a particular adapter target position for snapping.

Return

the target adapter position to you want to snap or NO_POSITION if no snapping should happen

Parameters

layoutManager

the RecyclerView.LayoutManager associated with the attached RecyclerView

velocityX

fling velocity on the horizontal axis

velocityY

fling velocity on the vertical axis