Android APIs
public final class

VelocityTrackerCompat

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

Class Overview

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)
static float getYVelocity(VelocityTracker tracker, int pointerId)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static 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

public static 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