BoundaryWorkingRange

class BoundaryWorkingRange @JvmOverloads constructor(offset: Int = OFFSET) : WorkingRange

An implementation of working range that uses offset to define the upper bound and the lower boundary. If the position is inside the boundary, it's in the range, otherwise it's out of the range.

Constructors

Link copied to clipboard
constructor(offset: Int = OFFSET)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun shouldEnterRange(position: Int, firstVisibleIndex: Int, lastVisibleIndex: Int, firstFullyVisibleIndex: Int, lastFullyVisibleIndex: Int): Boolean

Return true to trigger @OnEnteredRange method defined in the component, do nothing otherwise.

Link copied to clipboard
open override fun shouldExitRange(position: Int, firstVisibleIndex: Int, lastVisibleIndex: Int, firstFullyVisibleIndex: Int, lastFullyVisibleIndex: Int): Boolean

Return true to trigger @OnExitedRange method defined in the component, do nothing otherwise.