API reference

InteractionScope Interface

Scope for customizing interaction behavior in Modifier.Modifier.gazeImportantForInteraction
Provides additional configuration options for Gaze and Hands interaction semantics. Use this scope within Modifier.gazeImportantForInteraction to modify how interaction is handled for the composable and its descendants.

Signature

interface InteractionScope

Methods

excludeDescendants ()
Excludes all descendants from Gaze and Hands interaction.
This overrides the importantForInteraction value of all child elements, making them non-interactive for Gaze and Hands. The composable's own interactability is determined by its ImportantForInteraction value.
Signature
abstract fun excludeDescendants()