A11yNode

data class A11yNode(val nodeId: String, val composableName: String, val bounds: Rect, val contentDescription: String?, val isTouchTarget: Boolean, val textColor: Color?, val backgroundColors: List<Color>, val isFocusable: Boolean, val isMergedDescendant: Boolean, val depth: Int, val role: A11yRole? = null, val effectiveTouchBounds: Rect? = null)

Normalized representation of one UI semantics node scanned by the accessibility rules.

Constructors

Link copied to clipboard
constructor(nodeId: String, composableName: String, bounds: Rect, contentDescription: String?, isTouchTarget: Boolean, textColor: Color?, backgroundColors: List<Color>, isFocusable: Boolean, isMergedDescendant: Boolean, depth: Int, role: A11yRole? = null, effectiveTouchBounds: Rect? = null)

Properties

Link copied to clipboard

Candidate background colors sampled behind the node.

Link copied to clipboard

Pixel bounds relative to the scanned root.

Link copied to clipboard

Best-effort composable or role name used in reports.

Link copied to clipboard

Accessible label exposed by the node, if any.

Link copied to clipboard
val depth: Int

Depth in the semantics tree.

Link copied to clipboard

Effective pointer target bounds in root pixels for clickable nodes.

Link copied to clipboard

True when the node can participate in focus traversal.

Link copied to clipboard

True when the node is inside a parent that merges semantics.

Link copied to clipboard

True when the node exposes a click action.

Link copied to clipboard

Stable id for grouping issues that belong to the same semantics node.

Link copied to clipboard

Accessibility role mapped from the platform semantics role, if any.

Link copied to clipboard

Foreground text color when it can be extracted.