InputDevice.Id Property

Definition

Gets the input device id.

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

Property Value

The input device id.

Attributes

Remarks

Gets the input device id.

Each input device receives a unique id when it is first configured by the system. The input device id may change when the system is restarted or if the input device is disconnected, reconnected or reconfigured at any time. If you require a stable identifier for a device that persists across boots and reconfigurations, use #getDescriptor().

Java documentation for android.view.InputDevice.getId().

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