MotionEvent.PointerCoords.GetAxisValue(Axis) Method

Definition

Gets the value associated with the specified axis.

[Android.Runtime.Register("getAxisValue", "(I)F", "")]
public float GetAxisValue (Android.Views.Axis axis);
[<Android.Runtime.Register("getAxisValue", "(I)F", "")>]
member this.GetAxisValue : Android.Views.Axis -> single

Parameters

axis
Axis

The axis identifier for the axis value to retrieve.

Returns

The value associated with the axis, or 0 if none.

Attributes

Remarks

Gets the value associated with the specified axis.

Java documentation for android.view.MotionEvent.PointerCoords.getAxisValue(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

See also