Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.
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