API reference
API reference
Select your platform
No SDKs available
No versions available

UiElement Class

Modifiers: final
Represents a UI element detected on a panel.

Constructors

UiElement ( bounds , isInteractable , id )
Signature
constructor(bounds: Rect, isInteractable: Boolean = false, id: Long = -1)
Parameters
bounds: Rect
isInteractable: Boolean
id: Long
Returns
UiElement

Properties

bounds : Rect
[Get]
Pixel-space bounds of the element within the panel.
Signature
val bounds: Rect
id : Long
[Get]
The InteractionNode ID from the HorizonOS interaction system.
Signature
val id: Long
isInteractable : Boolean
[Get]
Whether this element responds to interaction (click, pinch, etc).
Signature
val isInteractable: Boolean = false