Parameter | Description |
---|---|
firstNode | The first node to find the lowest common ancestor of. |
secondNode | The second node to find the lowest common ancestor of. |
AccessibilityNode
The lowest common ancestor of the two given nodes, or null
if they don't have a common
ancestor.
Retrieves the lowest common ancestor of two nodes in the accessibility hierarchy.
The lowest common ancestor is the node that both nodes share in their path to the root node of their branch in the hierarchy.