KeyEvent.DeviceId Property

Definition

Gets the id for the device that this event came from. An id of zero indicates that the event didn't come from a physical device and maps to the default keymap. The other numbers are arbitrary and you shouldn't depend on the values.

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

Property Value

Attributes

Remarks

Additional information about the device id.

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

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