LazyListThreshold

class LazyListThreshold(val remainingItems: Int = 6, val remainingRatio: Float = 0.2f)

Configuration class for determining when to load more items in a LazyColumn or LazyRow.

Loading more items is triggered when both of the following conditions are met:

  • The number of remaining items is less than or equal to remainingItems

  • The ratio of remaining items to total items is less than or equal to remainingRatio

Constructors

Link copied to clipboard
constructor(remainingItems: Int = 6, remainingRatio: Float = 0.2f)

Properties

Link copied to clipboard

Threshold for the number of remaining items before triggering load more

Link copied to clipboard
val remainingRatio: Float = 0.2f

Threshold for the ratio of remaining items to total items (0.2f = 20%)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int