public static boolean performNavigationByDOMObject ( AccessibilityNodeInfoCompat node , int direction ) { final int action = ( direction == DIRECTION_FORWARD ) ? AccessibilityNodeInfoCompat . ACTION_NEXT_HTML_ELEMENT : AccessibilityNodeInfoCompat . ACTION_PREVIOUS_HTML_ELEMENT ; return node . performAction ( action ) ; }
Sends an instruction to ChromeVox to navigate by DOM object in the given direction within a node .