InputDevice.HasKeys(Int32[]) Method

Definition

Gets whether the device is capable of producing the list of keycodes.

[Android.Runtime.Register("hasKeys", "([I)[Z", "")]
public bool[]? HasKeys (params int[]? keys);
[<Android.Runtime.Register("hasKeys", "([I)[Z", "")>]
member this.HasKeys : int[] -> bool[]

Parameters

keys
Int32[]

The list of android keycodes to check for.

Returns

An array of booleans where each member specifies whether the device is capable of generating the keycode given by the corresponding value at the same index in the keys array.

Attributes

Remarks

Gets whether the device is capable of producing the list of keycodes.

Java documentation for android.view.InputDevice.hasKeys(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