Merge "nit: Update VelocityTracker Javadoc" into udc-dev am: 4bbcf913b2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21616549 Change-Id: I980d14b6c033d266cc57a907a96ca40684742661 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -32,9 +32,10 @@ import java.util.Map;
|
|||||||
*
|
*
|
||||||
* Use {@link #obtain} to retrieve a new instance of the class when you are going
|
* Use {@link #obtain} to retrieve a new instance of the class when you are going
|
||||||
* to begin tracking. Put the motion events you receive into it with
|
* to begin tracking. Put the motion events you receive into it with
|
||||||
* {@link #addMovement(MotionEvent)}. When you want to determine the velocity call
|
* {@link #addMovement(MotionEvent)}. When you want to determine the velocity, call
|
||||||
* {@link #computeCurrentVelocity(int)} and then call {@link #getXVelocity(int)}
|
* {@link #computeCurrentVelocity(int)} and then call the velocity-getter methods like
|
||||||
* and {@link #getYVelocity(int)} to retrieve the velocity for each pointer id.
|
* {@link #getXVelocity(int)}, {@link #getYVelocity(int)}, or {@link #getAxisVelocity(int, int)}
|
||||||
|
* to retrieve velocity for different axes and/or pointer IDs.
|
||||||
*/
|
*/
|
||||||
public final class VelocityTracker {
|
public final class VelocityTracker {
|
||||||
private static final SynchronizedPool<VelocityTracker> sPool =
|
private static final SynchronizedPool<VelocityTracker> sPool =
|
||||||
|
|||||||
Reference in New Issue
Block a user