UncoveredSemanticsNodeVisitor


Receives the nodes visited by SemanticsOwner.forEachUncoveredSemanticsNode.

Bounds are passed as primitives so that visiting doesn't allocate.

Summary

Public functions

Unit
visit(
    node: SemanticsNode,
    left: Int,
    top: Int,
    right: Int,
    bottom: Int,
    isInMergingHiddenSubtree: Boolean
)

Called for each uncovered node.

Cmn

Public functions

visit

fun visit(
    node: SemanticsNode,
    left: Int,
    top: Int,
    right: Int,
    bottom: Int,
    isInMergingHiddenSubtree: Boolean
): Unit

Called for each uncovered node.

Parameters
node: SemanticsNode

The node, from the unmerged tree. Includes the synthetic accessibility nodes produced by SemanticsNode.collectAccessibilityChildren.

left: Int

Left edge of the uncovered bounds, in pixels, in root coordinates.

top: Int

Top edge of the uncovered bounds, in pixels, in root coordinates.

right: Int

Right edge of the uncovered bounds, in pixels, in root coordinates.

bottom: Int

Bottom edge of the uncovered bounds, in pixels, in root coordinates.

isInMergingHiddenSubtree: Boolean

true if node or an enclosing merging node is hidden with hideFromAccessibility. Hosts report such nodes as not visible to the user.