InputDevice.GetMotionRange 方法

定义

重载

名称 说明
GetMotionRange(Axis)

获取有关特定 MotionEvent 轴的值范围的信息。

GetMotionRange(Int32)
已过时.
GetMotionRange(Axis, InputSourceType)

获取有关特定 MotionEvent 轴的值范围的信息。

GetMotionRange(Axis)

获取有关特定 MotionEvent 轴的值范围的信息。

[Android.Runtime.Register("getMotionRange", "(I)Landroid/view/InputDevice$MotionRange;", "")]
public Android.Views.InputDevice.MotionRange? GetMotionRange(Android.Views.Axis axis);
[<Android.Runtime.Register("getMotionRange", "(I)Landroid/view/InputDevice$MotionRange;", "")>]
member this.GetMotionRange : Android.Views.Axis -> Android.Views.InputDevice.MotionRange

参数

axis
Axis

轴常量。

返回

如果设备不支持所请求的轴,则为 null 值范围。

属性

注解

适用于 . 的 android.view.InputDevice.getMotionRange(int)Java 文档

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

适用于

GetMotionRange(Int32)

注意

Please use GetMotionRange(Android.Views.Axis)

[System.Obsolete("Please use GetMotionRange(Android.Views.Axis)")]
public Android.Views.InputDevice.MotionRange? GetMotionRange(int rangeType);
[<System.Obsolete("Please use GetMotionRange(Android.Views.Axis)")>]
member this.GetMotionRange : int -> Android.Views.InputDevice.MotionRange

参数

rangeType
Int32

返回

属性

注解

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

适用于

GetMotionRange(Axis, InputSourceType)

获取有关特定 MotionEvent 轴的值范围的信息。

[Android.Runtime.Register("getMotionRange", "(II)Landroid/view/InputDevice$MotionRange;", "")]
public Android.Views.InputDevice.MotionRange? GetMotionRange(Android.Views.Axis axis, Android.Views.InputSourceType source);
[<Android.Runtime.Register("getMotionRange", "(II)Landroid/view/InputDevice$MotionRange;", "")>]
member this.GetMotionRange : Android.Views.Axis * Android.Views.InputSourceType -> Android.Views.InputDevice.MotionRange

参数

axis
Axis

轴常量。

source
InputSourceType

要返回信息的源。

返回

如果设备不支持所请求的轴,则为 null 值范围。

属性

注解

适用于 . 的 android.view.InputDevice.getMotionRange(int)Java 文档

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

适用于