I have read through the android documentation in https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.html
I don't understand the description stated in the document about recycle() and refresh() method.
1. recycle() - Return an instance back to be reused.
- The instance is return back to where?
- In which scenario this instance going to be reused?
- AccessibilityNodeInfo might contains child node, do i need to call recycle() when my code navigate to each of the node or just call recycle method at root node?
2. refresh() - Refreshes this info with the latest state of the view it represents
- I thought when onAccessibilityEvent() method was called, the AccessibilityEvent object should contain the latest state?
- AccessibilityNodeInfo might contains child node, do i need to call refresh() when my code navigate to each of the node or just call refresh method at root node?