A11yNodeExtractor

Walks a Compose semantics tree and converts each SemanticsNode to an A11yNode.

Use the unmerged tree to see all rendered nodes including merged descendants:

  • Test: composeTestRule.onRoot(useUnmergedTree = true).fetchSemanticsNode()

  • Production: SemanticsOwner.rootSemanticsNode via extract(SemanticsOwner)

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Recursively extracts all nodes from the tree rooted at rootNode. Returns a flat list in depth-first order.

Entry point for production use. Requires opting in to the internal Compose UI API needed to access SemanticsOwner.