语言

InputManager.GetInputDeviceViewBehavior(Int32) 方法

定义

获取具有给定 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。

返回

具有指定 ID 的输入设备的视图行为,或者 null 没有输入设备具有该 ID。

属性

注解

获取具有给定 ID 的输入设备的 InputDevice.ViewBehavior。

使用此 API 在输入设备更改时查询新的视图行为实例。

Android 参考。android.hardware.input.InputManager.getInputDeviceViewBehavior

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于