Sdílet prostřednictvím


MotionEvent.Action Property

Definition

Return the kind of action being performed. -or- Sets this event's action.

public Android.Views.MotionEventActions Action { [Android.Runtime.Register("getAction", "()I", "")] get; [Android.Runtime.Register("setAction", "(I)V", "")] set; }
[<get: Android.Runtime.Register("getAction", "()I", "")>]
[<set: Android.Runtime.Register("setAction", "(I)V", "")>]
member this.Action : Android.Views.MotionEventActions with get, set

Property Value

The action, such as #ACTION_DOWN or the combination of #ACTION_POINTER_DOWN with a shifted pointer index.

Attributes

Remarks

Property getter documentation:

Return the kind of action being performed. Consider using #getActionMasked and #getActionIndex to retrieve the separate masked action and pointer index.

Java documentation for android.view.MotionEvent.getAction().

Property setter documentation:

Sets this event's action.

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