android.support.v4.view
Class VelocityTrackerCompat

java.lang.Object
  extended by android.support.v4.view.VelocityTrackerCompat

public class VelocityTrackerCompat
extends Object

Helper for accessing features in VelocityTracker introduced after API level 4 in a backwards compatible fashion.


Constructor Summary
VelocityTrackerCompat()
           
 
Method Summary
static float getXVelocity(android.view.VelocityTracker tracker, int pointerId)
          Call VelocityTracker.getXVelocity(int).
static float getYVelocity(android.view.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
 

Constructor Detail

VelocityTrackerCompat

public VelocityTrackerCompat()
Method Detail

getXVelocity

public static float getXVelocity(android.view.VelocityTracker tracker,
                                 int pointerId)
Call VelocityTracker.getXVelocity(int). If running on a pre-Build.VERSION_CODES.HONEYCOMB device, returns VelocityTracker.getXVelocity().


getYVelocity

public static float getYVelocity(android.view.VelocityTracker tracker,
                                 int pointerId)
Call VelocityTracker.getYVelocity(int). If running on a pre-Build.VERSION_CODES.HONEYCOMB device, returns VelocityTracker.getYVelocity().



Copyright © 2013 Marek Kedzierski. All Rights Reserved.