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 there is no common ancestor.
Retrieves the lowest common ancestor of two nodes in the hierarchy. The lowest common ancestor is the node that is the common node that both nodes share in their path to the root node of their branch in the hierarchy.