KeyCharacterMap.DeviceHasKeys(Keycode[]) Method
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.
Queries the framework about whether any physical keys exist on any currently attached input devices that are capable of producing the given array of key codes.
[Android.Runtime.Register("deviceHasKeys", "([I)[Z", "")]
public static bool[]? DeviceHasKeys (Android.Views.Keycode[]? keyCodes);
[<Android.Runtime.Register("deviceHasKeys", "([I)[Z", "")>]
static member DeviceHasKeys : Android.Views.Keycode[] -> bool[]
Parameters
- keyCodes
- Keycode[]
The array of key codes to query.
Returns
A new array of the same size as the key codes array whose elements are set to true if at least one attached keyboard supports the corresponding key code at the same index in the key codes array.
- Attributes
Remarks
Queries the framework about whether any physical keys exist on any currently attached input devices that are capable of producing the given array of key codes.
Java documentation for android.view.KeyCharacterMap.deviceHasKeys(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.