次の方法で共有


AccessibilityServiceInfo.FlagIncludeNotImportantViews Field

Definition

Caution

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

If this flag is set the system will regard views that are not important for accessibility in addition to the ones that are important for accessibility.

[Android.Runtime.Register("FLAG_INCLUDE_NOT_IMPORTANT_VIEWS")]
[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 FlagIncludeNotImportantViews = 2;
[<Android.Runtime.Register("FLAG_INCLUDE_NOT_IMPORTANT_VIEWS")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.AccessibilityServices.AccessibilityServiceFlags enum directly instead of this field.", true)>]
val mutable FlagIncludeNotImportantViews : Android.AccessibilityServices.AccessibilityServiceFlags

Field Value

Value = 2

Implements

Attributes

Remarks

If this flag is set the system will regard views that are not important for accessibility in addition to the ones that are important for accessibility. That is, views that are marked as not important for accessibility via View#IMPORTANT_FOR_ACCESSIBILITY_NO or View#IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS and views that are marked as potentially important for accessibility via View#IMPORTANT_FOR_ACCESSIBILITY_AUTO for which the system has determined that are not important for accessibility, are reported while querying the window content and also the accessibility service will receive accessibility events from them.

<strong>Note:</strong> For accessibility services targeting Android 4.1 (API level 16) or higher, this flag has to be explicitly set for the system to regard views that are not important for accessibility. For accessibility services targeting Android 4.0.4 (API level 15) or lower, this flag is ignored and all views are regarded for accessibility purposes.

Usually views not important for accessibility are layout managers that do not react to user actions, do not draw any content, and do not have any special semantics in the context of the screen content. For example, a three by three grid can be implemented as three horizontal linear layouts and one vertical, or three vertical linear layouts and one horizontal, or one grid layout, etc. In this context, the actual layout managers used to achieve the grid configuration are not important; rather it is important that there are nine evenly distributed elements.

Java documentation for android.accessibilityservice.AccessibilityServiceInfo.FLAG_INCLUDE_NOT_IMPORTANT_VIEWS.

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