InputDevice.GetMotionRange Method

Definition

Overloads

GetMotionRange(Axis)

Gets information about the range of values for a particular MotionEvent axis.

GetMotionRange(Int32)
Obsolete.
GetMotionRange(Axis, InputSourceType)

Gets information about the range of values for a particular MotionEvent axis.

GetMotionRange(Axis)

Gets information about the range of values for a particular MotionEvent axis.

[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

Parameters

axis
Axis

The axis constant.

Returns

The range of values, or null if the requested axis is not supported by the device.

Attributes

Remarks

Java documentation for android.view.InputDevice.getMotionRange(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetMotionRange(Int32)

Caution

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

Parameters

rangeType
Int32

Returns

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetMotionRange(Axis, InputSourceType)

Gets information about the range of values for a particular MotionEvent axis.

[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

Parameters

axis
Axis

The axis constant.

source
InputSourceType

The source for which to return information.

Returns

The range of values, or null if the requested axis is not supported by the device.

Attributes

Remarks

Java documentation for android.view.InputDevice.getMotionRange(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to