Share via


MotionEvent.AxisFromString(String) Method

Definition

Gets an axis by its symbolic name such as "AXIS_X" or an equivalent numeric constant such as "42".

[Android.Runtime.Register("axisFromString", "(Ljava/lang/String;)I", "")]
public static Android.Views.Axis AxisFromString (string? symbolicName);
[<Android.Runtime.Register("axisFromString", "(Ljava/lang/String;)I", "")>]
static member AxisFromString : string -> Android.Views.Axis

Parameters

symbolicName
String

The symbolic name of the axis.

Returns

The axis or -1 if not found.

Attributes

Remarks

Gets an axis by its symbolic name such as "AXIS_X" or an equivalent numeric constant such as "42".

Java documentation for android.view.MotionEvent.axisFromString(java.lang.String).

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