VelocityTracker

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.

Methods

public static VelocityTracker obtain() source
public void recycle() source
public void clear() source
public void addMovement(MotionEvent event) source
public void computeCurrentVelocity(int units) source
public void computeCurrentVelocity(int units, float maxVelocity) source
public float getXVelocity() source
public float getYVelocity() source
public float getXVelocity(int id) source
public float getYVelocity(int id) source
public boolean isAxisSupported(int axis) source
public float getAxisVelocity(int axis, int id) source
public float getAxisVelocity(int axis) source

Made 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.