added in version 1.0.0
belongs to Maven artifact androidx.core:core:1.0.0-beta01
Deprecated since version 1.0.0

VelocityTrackerCompat

public final class VelocityTrackerCompat
extends Object

java.lang.Object
   ↳ androidx.core.view.VelocityTrackerCompat


This class was deprecated in API level 1.0.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 1.0.0. Use VelocityTracker.getXVelocity(int) directly.

static float getYVelocity(VelocityTracker tracker, int pointerId)

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

Inherited methods

Public methods

getXVelocity

added in version 1.0.0
public static float getXVelocity (VelocityTracker tracker, 
                int pointerId)

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

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

Parameters
tracker VelocityTracker

pointerId int

Returns
float

getYVelocity

added in version 1.0.0
public static float getYVelocity (VelocityTracker tracker, 
                int pointerId)

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

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

Parameters
tracker VelocityTracker

pointerId int

Returns
float