The Android Developer Challenge is back! Submit your idea before December 2.

VelocityTrackerCompat

class VelocityTrackerCompat
kotlin.Any
   ↳ androidx.core.view.VelocityTrackerCompat

Helper for accessing features in VelocityTracker.

Summary

Public methods

static Float
getXVelocity(tracker: VelocityTracker!, pointerId: Int)

Call VelocityTracker#getXVelocity(int).

static Float
getYVelocity(tracker: VelocityTracker!, pointerId: Int)

Call VelocityTracker#getYVelocity(int).

Public methods

getXVelocity

static fun getXVelocity(tracker: VelocityTracker!, pointerId: Int): Float

Deprecated: Use VelocityTracker#getXVelocity(int) directly.

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

getYVelocity

static fun getYVelocity(tracker: VelocityTracker!, pointerId: Int): Float

Deprecated: Use VelocityTracker#getYVelocity(int) directly.

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