Sdílet prostřednictvím


KeyCharacterMap.GetDisplayLabel(Keycode) Method

Definition

Gets the primary character for this key.

[Android.Runtime.Register("getDisplayLabel", "(I)C", "GetGetDisplayLabel_IHandler")]
public virtual char GetDisplayLabel (Android.Views.Keycode keyCode);
[<Android.Runtime.Register("getDisplayLabel", "(I)C", "GetGetDisplayLabel_IHandler")>]
abstract member GetDisplayLabel : Android.Views.Keycode -> char
override this.GetDisplayLabel : Android.Views.Keycode -> char

Parameters

keyCode
Keycode

The key code.

Returns

The display label character, or 0 if none (eg. for non-printing keys).

Attributes

Remarks

Gets the primary character for this key. In other words, the label that is physically printed on it.

Java documentation for android.view.KeyCharacterMap.getDisplayLabel(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