OnNearCallback

class OnNearCallback(val offset: Int = 0, val callback: () -> Unit)

A callback triggered when a LazyCollection is scrolled "near" to a specific position, as defined by being within offset items away.

Intended for use with LazyCollection's onNearEnd parameter, or child's onNearViewport parameter.

Constructors

Link copied to clipboard
constructor(offset: Int = 0, callback: () -> Unit)

Properties

Link copied to clipboard
val callback: () -> Unit
Link copied to clipboard
val offset: Int = 0