AccessibilityService.GlobalActionKeycodeHeadsethook Field

Definition

Caution

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

Action to send the KEYCODE_HEADSETHOOK KeyEvent, which is used to answer and hang up calls and play and stop media.

[Android.Runtime.Register("GLOBAL_ACTION_KEYCODE_HEADSETHOOK", ApiSince=31)]
[System.Obsolete("This constant will be removed in the future version. Use Android.AccessibilityServices.GlobalAction enum directly instead of this field.", true)]
public const Android.AccessibilityServices.GlobalAction GlobalActionKeycodeHeadsethook = 10;
[<Android.Runtime.Register("GLOBAL_ACTION_KEYCODE_HEADSETHOOK", ApiSince=31)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.AccessibilityServices.GlobalAction enum directly instead of this field.", true)>]
val mutable GlobalActionKeycodeHeadsethook : Android.AccessibilityServices.GlobalAction

Field Value

Value = 10
Attributes

Remarks

Action to send the KEYCODE_HEADSETHOOK KeyEvent, which is used to answer and hang up calls and play and stop media. Calling takes priority. If there is an incoming call, this action can be used to answer that call, and if there is an ongoing call, to hang up on that call.

Java documentation for android.accessibilityservice.AccessibilityService.GLOBAL_ACTION_KEYCODE_HEADSETHOOK.

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