AccessibilityServiceInfo.FlagRequestFilterKeyEvents Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 = 32Implements
- 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
.
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.