android.support.v4.view
Class VelocityTrackerCompat
java.lang.Object
android.support.v4.view.VelocityTrackerCompat
public class VelocityTrackerCompat
- extends java.lang.Object
Helper for accessing features in VelocityTracker
introduced after API level 4 in a backwards compatible fashion.
Method Summary |
static float |
getXVelocity(VelocityTracker tracker,
int pointerId)
Call VelocityTracker#getXVelocity(int) . |
static float |
getYVelocity(VelocityTracker tracker,
int pointerId)
Call VelocityTracker#getYVelocity(int) . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VelocityTrackerCompat
public VelocityTrackerCompat()
getXVelocity
public static float getXVelocity(VelocityTracker tracker,
int pointerId)
- Call
VelocityTracker#getXVelocity(int)
.
If running on a pre-android.os.Build.VERSION_CODES#HONEYCOMB
device,
returns VelocityTracker#getXVelocity()
.
getYVelocity
public static float getYVelocity(VelocityTracker tracker,
int pointerId)
- Call
VelocityTracker#getYVelocity(int)
.
If running on a pre-android.os.Build.VERSION_CODES#HONEYCOMB
device,
returns VelocityTracker#getYVelocity()
.