Android.AccessibilityServices.AccessibilityService.Windows Property
Gets the windows on the screen.

Syntax

[get: Android.Runtime.Register("getWindows", "()Ljava/util/List;", "GetGetWindowsHandler")]
public virtual IList<Android.Views.Accessibility.AccessibilityWindowInfo> Windows { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Gets the windows on the screen. This method returns only the windows that a sighted user can interact with, as opposed to all windows. For example, if there is a modal dialog shown and the user cannot touch anything behind it, then only the modal window will be reported (assuming it is the top one). For convenience the returned windows are ordered in a descending layer order, which is the windows that are higher in the Z-order are reported first. Since the user can always interact with the window that has input focus by typing, the focused window is always returned (even if covered by a modal window).

Note: In order to access the windows your service has to declare the capability to retrieve window content by setting the NoType:android/R$styleable;Href=../../../reference/android/R.styleable.html#AccessibilityService_canRetrieveWindowContent property in its meta-data. For details refer to AccessibilityService.ServiceMetaData. Also the service has to opt-in to retrieve the interactive windows by setting the AccessibilityServiceInfo.FlagRetrieveInteractiveWindows flag.

[Android Documentation]

Requirements

Namespace: Android.AccessibilityServices
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 4