SnapUtil

open class SnapUtil

Utility class containing snapping related behavior of RecyclerView.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
annotation class SnapMode

Properties

Link copied to clipboard
val SNAP_NONE: Int = -2147483648
Link copied to clipboard
val SNAP_TO_CENTER: Int = 2147483647
Link copied to clipboard
val SNAP_TO_CENTER_CHILD: Int = 2147483646
Link copied to clipboard
val SNAP_TO_END: Int = 1
Link copied to clipboard
val SNAP_TO_START: Int = -1

Functions

Link copied to clipboard
open fun getSnapHelper(snapMode: Int, deltaJumpThreshold: Int, snapToStartFlingOffset: Int, snapToStartOffset: Int): SnapHelper
Link copied to clipboard
open fun getSnapModeFromString(@Nullable snapString: String): Int