InputManager.GetInputDeviceViewBehavior(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得輸入裝置與指定 ID 的 InputDevice.ViewBehavior。
[Android.Runtime.Register("getInputDeviceViewBehavior", "(I)Landroid/view/InputDevice$ViewBehavior;", "", ApiSince=35)]
public Android.Views.InputDevice.ViewBehavior? GetInputDeviceViewBehavior(int deviceId);
[<Android.Runtime.Register("getInputDeviceViewBehavior", "(I)Landroid/view/InputDevice$ViewBehavior;", "", ApiSince=35)>]
member this.GetInputDeviceViewBehavior : int -> Android.Views.InputDevice.ViewBehavior
參數
- deviceId
- Int32
輸入裝置的識別碼,其檢視行為被請求。
傳回
是輸入裝置具有指定 ID 的視圖行為,或 null 若沒有該 ID 的輸入裝置。
- 屬性
備註
取得輸入裝置與指定 ID 的 InputDevice.ViewBehavior。
當輸入裝置變更時,使用此 API 查詢新的視圖行為實例。
Android 參考資料。android.hardware.input.InputManager.getInputDeviceViewBehavior
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。