Share via


KeyCharacterMap.DeviceHasKey(Keycode) Method

Definition

Queries the framework about whether any physical keys exist on any currently attached input devices that are capable of producing the given key code.

[Android.Runtime.Register("deviceHasKey", "(I)Z", "")]
public static bool DeviceHasKey (Android.Views.Keycode keyCode);
[<Android.Runtime.Register("deviceHasKey", "(I)Z", "")>]
static member DeviceHasKey : Android.Views.Keycode -> bool

Parameters

keyCode
Keycode

The key code to query.

Returns

True if at least one attached keyboard supports the specified key code.

Attributes

Remarks

Queries the framework about whether any physical keys exist on any currently attached input devices that are capable of producing the given key code.

Java documentation for android.view.KeyCharacterMap.deviceHasKey(int).

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