ScrollIndicatorState

@Stable
interface ScrollIndicatorState

State for a scroll indicator.

Properties

Link copied to clipboard
abstract val indicatorHeight: Dp

The height of the indicator.

Link copied to clipboard
abstract val indicatorOffset: Dp

The offset of the indicator.

Link copied to clipboard
open val isScrollInProgress: Boolean

Whether the scrollable view is scrolling or the indicator is pressed.

Link copied to clipboard
abstract val orientation: Orientation

The orientation of the scroll indicator.

Link copied to clipboard
abstract val positionUpdater: @Composable ScrollIndicatorState.() -> Unit

The function to update the scroll position of the indicator.

Link copied to clipboard
abstract var pressed: Boolean

Whether the indicator is pressed.

Link copied to clipboard
abstract val scrollableStateOfView: ScrollableState

The scrollable state of the scrollable view bind to this indicator.

Link copied to clipboard
abstract var scrolledPx: Float

Distance that the scrollable view has been scrolled.

Link copied to clipboard
abstract var scrollViewAxisSize: Float

Width or Height of the scrollable view.

Link copied to clipboard
abstract var totalScrollableDistancePx: Float

Total scrollable value of the scrollable view.

Link copied to clipboard
abstract var trackHeight: Dp

The height of the track.

Link copied to clipboard
abstract var trackWidth: Dp

The width of the track.