Class of android.view · VelocityTracker.java · Android's reference
public final class VelocityTracker
The velocity of pointers, from a straight-line fit of their last 100 ms of movement.
public static VelocityTracker obtain() sourcepublic void recycle() sourcepublic void clear() sourcepublic void addMovement(MotionEvent event) sourcepublic void computeCurrentVelocity(int units) sourcepublic void computeCurrentVelocity(int units, float maxVelocity) sourcepublic float getXVelocity() sourcepublic float getYVelocity() sourcepublic float getXVelocity(int id) sourcepublic float getYVelocity(int id) sourcepublic boolean isAxisSupported(int axis) sourcepublic float getAxisVelocity(int axis, int id) sourcepublic float getAxisVelocity(int axis) sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.