API reference

SpatialIndicationNodeFactory Class

Factory that creates visual indication nodes for hover and press feedback on interactive UI elements in the Meta Horizon UI Set. Implements the Compose IndicationNodeFactory interface to produce SpatialIndicationNode instances that render colored overlays based on interaction state. Created internally by SpatialTheme using the current color scheme's hover and pressed colors.

Constructors

SpatialIndicationNodeFactory ( hoverColor , pressedColor )
Signature
constructor(hoverColor: Color, pressedColor: Color)
Parameters
hoverColor: Color
pressedColor: Color
Returns
SpatialIndicationNodeFactory

Methods

create ( interactionSource )
Creates a new SpatialIndicationNode for the given interaction source. The node renders colored overlays that respond to hover and press states using this factory's configured hoverColor and pressedColor values.
Signature
open fun create(interactionSource: InteractionSource): DelegatableNode
Parameters
interactionSource: InteractionSource
Returns
DelegatableNode