MotionLayout.MotionTracker


protected interface MotionLayout.MotionTracker


Subclasses can override to build test frameworks

Summary

Public functions

addMovement

Added in 2.2.0-alpha13
fun addMovement(event: MotionEvent!): Unit

clear

Added in 2.2.0-alpha13
fun clear(): Unit

computeCurrentVelocity

Added in 2.2.0-alpha13
fun computeCurrentVelocity(units: Int): Unit

computeCurrentVelocity

Added in 2.2.0-alpha13
fun computeCurrentVelocity(units: Int, maxVelocity: Float): Unit

getXVelocity

Added in 2.2.0-alpha13
fun getXVelocity(): Float

getXVelocity

Added in 2.2.0-alpha13
fun getXVelocity(id: Int): Float

getYVelocity

Added in 2.2.0-alpha13
fun getYVelocity(): Float

getYVelocity

Added in 2.2.0-alpha13
fun getYVelocity(id: Int): Float

recycle

Added in 2.2.0-alpha13
fun recycle(): Unit