SnapOnScrollListener

class SnapOnScrollListener(    snapHelper: SnapHelper,     var behavior: SnapOnScrollListener.Behavior = Behavior.NOTIFY_ON_SCROLL,     var onSnapPositionChanged: (Int) -> Unit = {}) : RecyclerView.OnScrollListener

Constructors

Link copied to clipboard
fun SnapOnScrollListener(    snapHelper: SnapHelper,     behavior: SnapOnScrollListener.Behavior = Behavior.NOTIFY_ON_SCROLL,     onSnapPositionChanged: (Int) -> Unit = {})

Types

Link copied to clipboard
enum Behavior : Enum<SnapOnScrollListener.Behavior>

Functions

Link copied to clipboard
open override fun onScrolled(    recyclerView: RecyclerView,     dx: Int,     dy: Int)
Link copied to clipboard
open override fun onScrollStateChanged(recyclerView: RecyclerView, newState: Int)

Properties

Link copied to clipboard
var behavior: SnapOnScrollListener.Behavior
Link copied to clipboard
var onSnapPositionChanged: (Int) -> Unit