PointerHoverNode

Node capability that observes whether the latest pointer move hits its accumulated laid-out bounds.

The runtime invokes this callback on the owning tree thread for every placed capable node before ordinary move-event dispatch. It also supplies false when an owning session clears hover during detachment. Implementations decide whether repeated equal values have observable work.

Functions

Link copied to clipboard
abstract fun onPointerHover(hovered: Boolean)

Observes the current hit state for the latest pointer transition.