VelocityTracker.AddMovement(MotionEvent) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.