Java android.view VelocityTracker fields, constructors, methods, implement or subclass

Example usage for Java android.view VelocityTracker fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.view VelocityTracker.

The text is from its open source code.

Method

voidaddMovement(MotionEvent event)
Add a user's movement to the tracker.
voidclear()
Reset the velocity tracker back to its initial state.
voidcomputeCurrentVelocity(int units, float maxVelocity)
Compute the current velocity based on the points that have been collected.
voidcomputeCurrentVelocity(int units)
Equivalent to invoking #computeCurrentVelocity(int,float) with a maximum velocity of Float.MAX_VALUE.
floatgetXVelocity(int id)
Retrieve the last computed X velocity.
floatgetXVelocity()
Retrieve the last computed X velocity.
floatgetYVelocity(int id)
Retrieve the last computed Y velocity.
floatgetYVelocity()
Retrieve the last computed Y velocity.
VelocityTrackerobtain()
Retrieve a new VelocityTracker object to watch the velocity of a motion.