ScrollIndicatorFactory
-
Cmn
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.
| See also | |
|---|---|
scrollIndicator |
Summary
Public functions |
||
|---|---|---|
DelegatableNode |
createNode(state: ScrollIndicatorState, orientation: Orientation)Creates a |
Cmn
|
operator Boolean |
Require equals() to be implemented. |
Cmn
|
Int |
hashCode()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 |
orientation: Orientation |
The scrolling orientation of the container. |
| Returns | |
|---|---|
DelegatableNode |
A new instance of |
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.