MotionEvent.ActionIndex Property

Definition

For #ACTION_POINTER_DOWN or #ACTION_POINTER_UP as returned by #getActionMasked, this returns the associated pointer index.

public int ActionIndex { [Android.Runtime.Register("getActionIndex", "()I", "")] get; }
[<get: Android.Runtime.Register("getActionIndex", "()I", "")>]
member this.ActionIndex : int

Property Value

The index associated with the action.

Attributes

Remarks

For #ACTION_POINTER_DOWN or #ACTION_POINTER_UP as returned by #getActionMasked, this returns the associated pointer index. The index may be used with #getPointerId(int), #getX(int), #getY(int), #getPressure(int), and #getSize(int) to get information about the pointer that has gone down or up.

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

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