Sdílet prostřednictvím


KeyEvent.KeyCode Property

Definition

Retrieve the key code of the key event.

public Android.Views.Keycode KeyCode { [Android.Runtime.Register("getKeyCode", "()I", "")] get; }
[<get: Android.Runtime.Register("getKeyCode", "()I", "")>]
member this.KeyCode : Android.Views.Keycode

Property Value

The key code of the event.

Attributes

Remarks

Retrieve the key code of the key event. This is the physical key that was pressed, <em>not</em> the Unicode character.

Java documentation for android.view.KeyEvent.getKeyCode().

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