Google is committed to advancing racial equity for Black communities. See how.

AccessibilityScrollState

data class AccessibilityScrollState
kotlin.Any
   ↳ androidx.compose.ui.semantics.AccessibilityScrollState

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

Summary

Public constructors
<init>(value: Float = 0f, maxValue: Float = 0f, reverseScrolling: Boolean = false)

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

Properties
Float

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

Boolean

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

Float

current scroll position value in pixels

Public constructors

<init>

AccessibilityScrollState(
    value: Float = 0f,
    maxValue: Float = 0f,
    reverseScrolling: Boolean = false)

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

Parameters
value: Float = 0f current scroll position value in pixels
maxValue: Float = 0f 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

Properties

maxValue

val maxValue: Float

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

reverseScrolling

val reverseScrolling: Boolean

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 scroll position value in pixels