Share via


AccessibilityService.RootInActiveWindow Property

Definition

Gets the root node in the currently active window if this service can retrieve window content.

public virtual Android.Views.Accessibility.AccessibilityNodeInfo? RootInActiveWindow { [Android.Runtime.Register("getRootInActiveWindow", "()Landroid/view/accessibility/AccessibilityNodeInfo;", "GetGetRootInActiveWindowHandler")] get; }
[<get: Android.Runtime.Register("getRootInActiveWindow", "()Landroid/view/accessibility/AccessibilityNodeInfo;", "GetGetRootInActiveWindowHandler")>]
member this.RootInActiveWindow : Android.Views.Accessibility.AccessibilityNodeInfo

Property Value

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.

<strong>Note:</strong> In order to access the root node your service has to declare the capability to retrieve window content by setting the android.R.styleable#AccessibilityService_canRetrieveWindowContent property in its meta-data. For details refer to #SERVICE_META_DATA.

Java documentation for android.accessibilityservice.AccessibilityService.getRootInActiveWindow().

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.

Applies to