Dela via


VelocityTracker.AddMovement(MotionEvent) Method

Definition

Add a user's movement to the tracker.

[Android.Runtime.Register("addMovement", "(Landroid/view/MotionEvent;)V", "")]
public void AddMovement (Android.Views.MotionEvent? e);
[<Android.Runtime.Register("addMovement", "(Landroid/view/MotionEvent;)V", "")>]
member this.AddMovement : Android.Views.MotionEvent -> unit

Parameters

e
MotionEvent

The MotionEvent you received and would like to track.

Attributes

Remarks

Add a user's movement to the tracker. You should call this for the initial MotionEvent#ACTION_DOWN, the following MotionEvent#ACTION_MOVE events that you receive, and the final MotionEvent#ACTION_UP. You can, however, call this for whichever events you desire.

Java documentation for android.view.VelocityTracker.addMovement(android.view.MotionEvent).

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