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

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

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