protected interface

MotionLayout.MotionTracker

 androidx.constraintlayout.motion.widget.MotionLayout.MotionTracker

Overview

Subclasses can override to build test frameworks

Summary

Methods
public voidaddMovement(MotionEvent event)

public voidclear()

public voidcomputeCurrentVelocity(int units)

public voidcomputeCurrentVelocity(int units, float maxVelocity)

public floatgetXVelocity()

public floatgetXVelocity(int id)

public floatgetYVelocity()

public floatgetYVelocity(int id)

public voidrecycle()

Methods

public void recycle()

public void clear()

public void addMovement(MotionEvent event)

public void computeCurrentVelocity(int units)

public void computeCurrentVelocity(int units, float maxVelocity)

public float getXVelocity()

public float getYVelocity()

public float getXVelocity(int id)

public float getYVelocity(int id)