MotionLayout.MotionTracker


protected interface MotionLayout.MotionTracker


Subclasses can override to build test frameworks

Summary

Public functions

addMovement

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

clear

Added in 2.2.0
fun clear(): Unit

computeCurrentVelocity

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

computeCurrentVelocity

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

getXVelocity

Added in 2.2.0
fun getXVelocity(): Float

getXVelocity

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

getYVelocity

Added in 2.2.0
fun getYVelocity(): Float

getYVelocity

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

recycle

Added in 2.2.0
fun recycle(): Unit