public final class MotionEventTracker extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MotionEventTracker.MotionEventId
Represents a unique identifier corresponding to a motion event.
|
Modifier and Type | Method and Description |
---|---|
static MotionEventTracker |
getInstance() |
MotionEvent |
pop(MotionEventTracker.MotionEventId eventId)
Returns the MotionEvent corresponding to the eventId while discarding all the motion events
that occured prior to the event represented by the eventId.
|
MotionEventTracker.MotionEventId |
track(MotionEvent event)
Tracks the event and returns a unique MotionEventId identifying the event.
|
public static MotionEventTracker getInstance()
public MotionEventTracker.MotionEventId track(MotionEvent event)
@Nullable public MotionEvent pop(MotionEventTracker.MotionEventId eventId)