Share via


KeyEvent.ScanCode Property

Definition

Retrieve the hardware key id of this key event.

public int ScanCode { [Android.Runtime.Register("getScanCode", "()I", "")] get; }
[<get: Android.Runtime.Register("getScanCode", "()I", "")>]
member this.ScanCode : int

Property Value

Attributes

Remarks

Retrieve the hardware key id of this key event. These values are not reliable and vary from device to device.

{

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

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