MotionLayout.MotionTracker

protected static interface MotionLayout.MotionTracker

androidx.constraintlayout.motion.widget.MotionLayout.MotionTracker


Subclasses can override to build test frameworks

Summary

Public methods

abstract void addMovement(MotionEvent event)
abstract void clear()
abstract void computeCurrentVelocity(int units)
abstract void computeCurrentVelocity(int units, float maxVelocity)
abstract float getXVelocity(int id)
abstract float getXVelocity()
abstract float getYVelocity()
abstract float getYVelocity(int id)
abstract void recycle()

Public methods

addMovement

public abstract void addMovement (MotionEvent event)

Parameters
event MotionEvent

clear

public abstract void clear ()

computeCurrentVelocity

public abstract void computeCurrentVelocity (int units)

Parameters
units int

computeCurrentVelocity

public abstract void computeCurrentVelocity (int units, 
                float maxVelocity)

Parameters
units int

maxVelocity float

getXVelocity

public abstract float getXVelocity (int id)

Parameters
id int

Returns
float

getXVelocity

public abstract float getXVelocity ()

Returns
float

getYVelocity

public abstract float getYVelocity ()

Returns
float

getYVelocity

public abstract float getYVelocity (int id)

Parameters
id int

Returns
float

recycle

public abstract void recycle ()