Interface

UncoveredSemanticsNodeVisitor

Receives the nodes visited by SemanticsOwner.forEachUncoveredSemanticsNode.

Source set: Common
public interface UncoveredSemanticsNodeVisitor

Receives the nodes visited by SemanticsOwner.forEachUncoveredSemanticsNode.

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

Functions

visit

Source set: Common
public fun visit(
        node: SemanticsNode,
        left: Int,
        top: Int,
        right: Int,
        bottom: Int,
        isInMergingHiddenSubtree: Boolean,
    )

Called for each uncovered node.

Parameters

node The node, from the unmerged tree. Includes the synthetic accessibility nodes produced by SemanticsNode.collectAccessibilityChildren.
left Left edge of the uncovered bounds, in pixels, in root coordinates.
top Top edge of the uncovered bounds, in pixels, in root coordinates.
right Right edge of the uncovered bounds, in pixels, in root coordinates.
bottom Bottom edge of the uncovered bounds, in pixels, in root coordinates.
isInMergingHiddenSubtree true if node or an enclosing merging node is hidden with hideFromAccessibility. Hosts report such nodes as not visible to the user.
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: