getSnapPosition

Get current snap item position of a recyclerView.

Return

Position of the item or RecyclerView.NO_POSITION (-1)

Parameters

layoutManager

Target recyclerView