Package org.robolectric.shadows
Class ShadowVelocityTracker
- java.lang.Object
-
- org.robolectric.shadows.ShadowVelocityTracker
-
@Implements(android.view.VelocityTracker.class) public class ShadowVelocityTracker extends Object
-
-
Constructor Summary
Constructors Constructor Description ShadowVelocityTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddMovement(MotionEvent event)protected voidclear()protected voidcomputeCurrentVelocity(int units)protected voidcomputeCurrentVelocity(int units, float maxVelocity)protected floatgetXVelocity()protected floatgetXVelocity(int id)protected floatgetYVelocity()protected floatgetYVelocity(int id)
-
-
-
Method Detail
-
clear
@Implementation protected void clear()
-
addMovement
@Implementation protected void addMovement(MotionEvent event)
-
computeCurrentVelocity
@Implementation protected void computeCurrentVelocity(int units)
-
computeCurrentVelocity
@Implementation protected void computeCurrentVelocity(int units, float maxVelocity)
-
getXVelocity
@Implementation protected float getXVelocity()
-
getYVelocity
@Implementation protected float getYVelocity()
-
getXVelocity
@Implementation protected float getXVelocity(int id)
-
getYVelocity
@Implementation protected float getYVelocity(int id)
-
-