Most visited

Recently visited

VelocityTrackerCompat

public final class VelocityTrackerCompat
extends Object

java.lang.Object
   ↳ android.support.v4.view.VelocityTrackerCompat


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

Summary

Public methods

static float getXVelocity(VelocityTracker tracker, int pointerId)

Call getXVelocity(int).

static float getYVelocity(VelocityTracker tracker, int pointerId)

Call getYVelocity(int).

Inherited methods

From class java.lang.Object

Public methods

getXVelocity

float getXVelocity (VelocityTracker tracker, 
                int pointerId)

Call getXVelocity(int). If running on a pre-HONEYCOMB device, returns getXVelocity().

Parameters
tracker VelocityTracker
pointerId int
Returns
float

getYVelocity

float getYVelocity (VelocityTracker tracker, 
                int pointerId)

Call getYVelocity(int). If running on a pre-HONEYCOMB device, returns getYVelocity().

Parameters
tracker VelocityTracker
pointerId int
Returns
float

Hooray!