Compartilhar via


KeyCharacterMap.GetKeyData(Keycode, KeyCharacterMap+KeyData) Method

Definition

Caution

deprecated

Get the character conversion data for a given key code.

[Android.Runtime.Register("getKeyData", "(ILandroid/view/KeyCharacterMap$KeyData;)Z", "GetGetKeyData_ILandroid_view_KeyCharacterMap_KeyData_Handler")]
[System.Obsolete("deprecated")]
public virtual bool GetKeyData (Android.Views.Keycode keyCode, Android.Views.KeyCharacterMap.KeyData? results);
[<Android.Runtime.Register("getKeyData", "(ILandroid/view/KeyCharacterMap$KeyData;)Z", "GetGetKeyData_ILandroid_view_KeyCharacterMap_KeyData_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member GetKeyData : Android.Views.Keycode * Android.Views.KeyCharacterMap.KeyData -> bool
override this.GetKeyData : Android.Views.Keycode * Android.Views.KeyCharacterMap.KeyData -> bool

Parameters

keyCode
Keycode

The keyCode to query.

results
KeyCharacterMap.KeyData

A KeyData instance that will be filled with the results.

Returns

True if the key was mapped. If the key was not mapped, results is not modified.

Attributes

Remarks

Java documentation for android.view.KeyCharacterMap.getKeyData(int, android.view.KeyData).

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