@Implements(value=android.view.VelocityTracker.class) public class ShadowVelocityTracker extends Object
VelocityTracker.| Constructor and Description |
|---|
ShadowVelocityTracker() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMovement(android.view.MotionEvent event) |
void |
clear() |
void |
computeCurrentVelocity(int units) |
void |
computeCurrentVelocity(int units,
float maxVelocity) |
float |
getXVelocity() |
float |
getXVelocity(int id) |
float |
getYVelocity() |
float |
getYVelocity(int id) |
@Implementation public void clear()
@Implementation public void addMovement(android.view.MotionEvent event)
@Implementation public void computeCurrentVelocity(int units)
@Implementation
public void computeCurrentVelocity(int units,
float maxVelocity)
@Implementation public float getXVelocity()
@Implementation public float getYVelocity()
@Implementation public float getXVelocity(int id)
@Implementation public float getYVelocity(int id)
Copyright © 2015. All rights reserved.