API reference

GazeHoverTooltipScope Interface

Scope for specifying additional arguments for hover tooltips.
Used with Modifier.gazeTooltip to customize tooltips triggered by Gaze and Hands interactions.
Example usage:
Modifier.gazeTooltip(stringResource(R.string.manage_contacts_tooltip)) {
  // Tooltip appears to the left of the view (LTR)
  // or to the right of the view (RTL)
  position = TooltipPosition.Start
}

See Also

Signature

interface GazeHoverTooltipScope

Properties

position : TooltipPosition?
[Get][Set]
Optional TooltipPosition specifying where the tooltip should appear relative to the target composable.
When unspecified (null), The system defaults to top positioning.
Signature
abstract var position: TooltipPosition?