ScrollIndicatorFactory


A factory for creating a scroll indicator, such as a scrollbar, that can be attached to a scrollable component.

Implementations of this interface define the appearance and behavior of the scroll indicator. For example, a platform-specific scrollbar or a custom designed indicator can be created by implementing this interface.

See also
scrollIndicator

Summary

Public functions

DelegatableNode

Creates a DelegatableNode that draws the scroll indicator and handles its interactions.

Cmn
operator Boolean
equals(other: Any?)

Require equals() to be implemented.

Cmn
Int

Require hashCode() to be implemented.

Cmn

Public functions

createNode

fun createNode(state: ScrollIndicatorState, orientation: Orientation): DelegatableNode

Creates a DelegatableNode that draws the scroll indicator and handles its interactions.

This node is attached to the hierarchy via the Modifier.scrollIndicator modifier.

Parameters
state: ScrollIndicatorState

The ScrollIndicatorState for the scrollable component.

orientation: Orientation

The scrolling orientation of the container.

Returns
DelegatableNode

A new instance of DelegatableNode that represents the scroll indicator.

equals

operator fun equals(other: Any?): Boolean

Require equals() to be implemented. Using a data class is sufficient. Singletons may implement this function with referential equality (this === other). Instances with no properties may implement this function by checking the type of the other object.

hashCode

fun hashCode(): Int

Require hashCode() to be implemented. Using a data class is sufficient. Singletons and instances with no properties may implement this function by returning an arbitrary constant.