AccessibilityService.GetRootInActiveWindow(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the root node in the currently active window if this service can retrieve window content.
[Android.Runtime.Register("getRootInActiveWindow", "(I)Landroid/view/accessibility/AccessibilityNodeInfo;", "GetGetRootInActiveWindow_IHandler", ApiSince=33)]
public virtual Android.Views.Accessibility.AccessibilityNodeInfo? GetRootInActiveWindow (int prefetchingStrategy);
[<Android.Runtime.Register("getRootInActiveWindow", "(I)Landroid/view/accessibility/AccessibilityNodeInfo;", "GetGetRootInActiveWindow_IHandler", ApiSince=33)>]
abstract member GetRootInActiveWindow : int -> Android.Views.Accessibility.AccessibilityNodeInfo
override this.GetRootInActiveWindow : int -> Android.Views.Accessibility.AccessibilityNodeInfo
Parameters
- prefetchingStrategy
- Int32
the prefetching strategy.
Returns
The root node if this service can retrieve window content.
- Attributes
Remarks
Gets the root node in the currently active window if this service can retrieve window content. The active window is the one that the user is currently touching or the window with input focus, if the user is not touching any window. It could be from any logical display.
Java documentation for android.accessibilityservice.AccessibilityService.getRootInActiveWindow(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.