MotionLayout.MotionTracker


protected interface MotionLayout.MotionTracker


Subclasses can override to build test frameworks

Summary

Public methods

abstract void
abstract void
abstract void
abstract void
computeCurrentVelocity(int units, float maxVelocity)
abstract float
abstract float
getXVelocity(int id)
abstract float
abstract float
getYVelocity(int id)
abstract void

Public methods

addMovement

Added in 2.2.0
abstract void addMovement(MotionEvent event)

clear

Added in 2.2.0
abstract void clear()

computeCurrentVelocity

Added in 2.2.0
abstract void computeCurrentVelocity(int units)

computeCurrentVelocity

Added in 2.2.0
abstract void computeCurrentVelocity(int units, float maxVelocity)

getXVelocity

Added in 2.2.0
abstract float getXVelocity()

getXVelocity

Added in 2.2.0
abstract float getXVelocity(int id)

getYVelocity

Added in 2.2.0
abstract float getYVelocity()

getYVelocity

Added in 2.2.0
abstract float getYVelocity(int id)

recycle

Added in 2.2.0
abstract void recycle()