語言

InputEvent.DeviceId 屬性

定義

取得該事件發生的裝置的 ID。 id 為零表示事件並非來自實體裝置,並對應到預設的鍵位映射。 其他數字是任意的,你不應該依賴這些數值。

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

屬性值

屬性

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

另請參閱