共用方式為


MotionEvent.ActionToString(MotionEventActions) Method

Definition

Returns a string that represents the symbolic name of the specified unmasked action such as "ACTION_DOWN", "ACTION_POINTER_DOWN(3)" or an equivalent numeric constant such as "35" if unknown.

[Android.Runtime.Register("actionToString", "(I)Ljava/lang/String;", "")]
public static string? ActionToString (Android.Views.MotionEventActions action);
[<Android.Runtime.Register("actionToString", "(I)Ljava/lang/String;", "")>]
static member ActionToString : Android.Views.MotionEventActions -> string

Parameters

action
MotionEventActions

The unmasked action.

Returns

The symbolic name of the specified action.

Attributes

Remarks

Returns a string that represents the symbolic name of the specified unmasked action such as "ACTION_DOWN", "ACTION_POINTER_DOWN(3)" or an equivalent numeric constant such as "35" if unknown.

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