VelocityTrackerCompat

public final class VelocityTrackerCompat
extends Object

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


This class is deprecated.
Use VelocityTracker directly.

Helper for accessing features in VelocityTracker.

Summary

Public methods

static float getXVelocity(VelocityTracker tracker, int pointerId)

This method is deprecated. Use VelocityTracker.getXVelocity(int) directly.

static float getYVelocity(VelocityTracker tracker, int pointerId)

This method is deprecated. Use VelocityTracker.getYVelocity(int) directly.

Inherited methods

Public methods

getXVelocity

public static float getXVelocity (VelocityTracker tracker, 
                int pointerId)

This method is deprecated.
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

public static float getYVelocity (VelocityTracker tracker, 
                int pointerId)

This method is deprecated.
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