語言

KeyEvent.DeviceId 屬性

定義

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

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

屬性值

屬性

備註

關於裝置ID的額外資訊。

的 android.view.KeyEvent.getDeviceId()Java 檔。

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

適用於