public final class AccessibilityTreeSnapshot
- Object
- AccessibilityTreeSnapshot
Immutable accessibility tree for the current form.
Methods
Inherited methods
Method details
getGeneration
public long getGeneration()getRootIds
public List<Long> getRootIds()getNodes
public Map<Long, AccessibilityNodeSnapshot> getNodes()getNode
public AccessibilityNodeSnapshot getNode(long id)getNodeByIdentifier
public AccessibilityNodeSnapshot getNodeByIdentifier(String identifier)Finds a node by its application-supplied stable identifier.
Parameters
identifierString- identifier assigned with
AccessibilityNode#setIdentifier(String)
Returns
the matching node, or null when no node has that identifier.
getNodeAt
public AccessibilityNodeSnapshot getNodeAt(int x, int y)Returns the deepest semantic node containing the screen coordinate.
toJson
public String toJson()