ScrollAxisRange


The scroll state of one axis if this node is scrollable.

Summary

Public constructors

ScrollAxisRange(
    value: () -> Float,
    maxValue: () -> Float,
    reverseScrolling: Boolean
)
Cmn

Public functions

open String
Cmn

Public properties

() -> Float

maximum bound for value, or Float.POSITIVE_INFINITY if still unknown

Cmn
Boolean

for horizontal scroll, when this is true, 0 value will mean right, whenfalse, 0 value will mean left.

Cmn
() -> Float

current 0-based scroll position value (either in pixels, or lazy-item count)

Cmn

Public constructors

ScrollAxisRange

ScrollAxisRange(
    value: () -> Float,
    maxValue: () -> Float,
    reverseScrolling: Boolean = false
)
Parameters
value: () -> Float

current 0-based scroll position value (either in pixels, or lazy-item count)

maxValue: () -> Float

maximum bound for value, or Float.POSITIVE_INFINITY if still unknown

reverseScrolling: Boolean = false

for horizontal scroll, when this is true, 0 value will mean right, whenfalse, 0 value will mean left. For vertical scroll, when this is true, 0 value will mean bottom, when false, 0 value will mean top

Public functions

toString

open fun toString(): String

Public properties

maxValue

val maxValue: () -> Float

maximum bound for value, or Float.POSITIVE_INFINITY if still unknown

reverseScrolling

val reverseScrollingBoolean

for horizontal scroll, when this is true, 0 value will mean right, whenfalse, 0 value will mean left. For vertical scroll, when this is true, 0 value will mean bottom, when false, 0 value will mean top

value

val value: () -> Float

current 0-based scroll position value (either in pixels, or lazy-item count)