A11yNodeExtractor
class 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.rootSemanticsNodevia extract(SemanticsOwner)
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.