次の方法で共有


AccessibilityServiceInfo.FlagRequestFilterKeyEvents Field

Definition

Caution

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

This flag requests from the system to filter key events.

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

Field Value

Value = 32

Implements

Attributes

Remarks

This flag requests from the system to filter key events. If this flag is set the accessibility service will receive the key events before applications allowing it implement global shortcuts.

Services that want to set this flag have to declare this capability in their meta-data by setting the attribute android.R.attr #canRequestFilterKeyEvents canRequestFilterKeyEvents 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_REQUEST_FILTER_KEY_EVENTS.

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