ScrollIndicatorFactory
A factory for creating a scroll indicator, such as a scrollbar, that can be attached to a
ScrollIndicatorFactory
interface 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.
Functions
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 | The ScrollIndicatorState for the scrollable component. |
| orientation | The scrolling orientation of the container. |
Returns
A new instance of DelegatableNode that represents the scroll indicator. |
override 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.
override 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.