Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

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().