次の方法で共有


AccessibilityServiceInfo.FlagRetrieveInteractiveWindows Field

Definition

Caution

This constant will be removed in the future version. Use Android.AccessibilityServices.AccessibilityServiceFlags enum directly instead of this field.

This flag indicates to the system that the accessibility service wants to access content of all interactive windows.

[Android.Runtime.Register("FLAG_RETRIEVE_INTERACTIVE_WINDOWS")]
[System.Obsolete("This constant will be removed in the future version. Use Android.AccessibilityServices.AccessibilityServiceFlags enum directly instead of this field.", true)]
public const Android.AccessibilityServices.AccessibilityServiceFlags FlagRetrieveInteractiveWindows = 64;
[<Android.Runtime.Register("FLAG_RETRIEVE_INTERACTIVE_WINDOWS")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.AccessibilityServices.AccessibilityServiceFlags enum directly instead of this field.", true)>]
val mutable FlagRetrieveInteractiveWindows : Android.AccessibilityServices.AccessibilityServiceFlags

Field Value

Value = 64

Implements

Attributes

Remarks

This flag indicates to the system that the accessibility service wants to access content of all interactive windows. An interactive window is a window that has input focus or can be touched by a sighted user when explore by touch is not enabled. If this flag is not set your service will not receive android.view.accessibility.AccessibilityEvent#TYPE_WINDOWS_CHANGED events, calling AccessibilityServiceAccessibilityService#getWindows() AccessibilityService.getWindows() will return an empty list, and AccessibilityNodeInfo#getWindow() AccessibilityNodeInfo.getWindow() will return null.

Services that want to set this flag have to declare the capability to retrieve window content in their meta-data by setting the attribute android.R.attr#canRetrieveWindowContent canRetrieveWindowContent to true, otherwise this flag will be ignored. For how to declare the meta-data of a service refer to AccessibilityService#SERVICE_META_DATA.

Java documentation for android.accessibilityservice.AccessibilityServiceInfo.FLAG_RETRIEVE_INTERACTIVE_WINDOWS.

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