added in version 22.1.0
belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
Deprecated since version 26.1.0

VelocityTrackerCompat

public final class VelocityTrackerCompat
extends Object

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


This class was deprecated in API level 26.1.0.
Use VelocityTracker directly.

Helper for accessing features in VelocityTracker.

Summary

Public methods

static float getXVelocity(VelocityTracker tracker, int pointerId)

This method was deprecated in API level 26.1.0. Use getXVelocity(int) directly.

static float getYVelocity(VelocityTracker tracker, int pointerId)

This method was deprecated in API level 26.1.0. Use getYVelocity(int) directly.

Inherited methods

From class java.lang.Object

Public methods

getXVelocity

added in version 22.1.0
float getXVelocity (VelocityTracker tracker, 
                int pointerId)

This method was deprecated in API level 26.1.0.
Use getXVelocity(int) directly.

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

Parameters
tracker VelocityTracker

pointerId int

Returns
float

getYVelocity

added in version 22.1.0
float getYVelocity (VelocityTracker tracker, 
                int pointerId)

This method was deprecated in API level 26.1.0.
Use getYVelocity(int) directly.

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

Parameters
tracker VelocityTracker

pointerId int

Returns
float