Function

forEachUncoveredSemanticsNode

Visits the semantics nodes in the unmerged tree that aren't completely covered by siblings drawn on top of them.

forEachUncoveredSemanticsNode

Source set: Common
public fun SemanticsOwner.forEachUncoveredSemanticsNode(visitor: UncoveredSemanticsNodeVisitor)

Visits the semantics nodes in the unmerged tree that aren't completely covered by siblings drawn on top of them.

Starts at SemanticsOwner.unmergedRootSemanticsNode, which is always visited (hosts usually map its id to their own root). Children come from SemanticsNode.collectAccessibilityChildren, so descendants of clearAndSetSemantics nodes and inline text link test markers (SemanticsProperties.LinkTestMarker) are not visited. The bounds passed to visitor are the bounding box of the uncovered part of each node's touch bounds; synthetic nodes use the bounds of the node that owns them. Nothing is visited if the root isn't attached and placed.

Parameters

visitor Called for each uncovered node.
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: