Package io.flutter.embedding.android
Class MotionEventTracker
java.lang.Object
io.flutter.embedding.android.MotionEventTracker
Tracks the motion events received by the FlutterView.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents a unique identifier corresponding to a motion event. -
Method Summary
Modifier and TypeMethodDescriptionstatic MotionEventTracker
pop
(MotionEventTracker.MotionEventId eventId) Returns the MotionEvent corresponding to the eventId while discarding all the motion events that occurred prior to the event represented by the eventId.track
(MotionEvent event) Tracks the event and returns a unique MotionEventId identifying the event.
-
Method Details
-
getInstance
-
track
Tracks the event and returns a unique MotionEventId identifying the event. -
pop
Returns the MotionEvent corresponding to the eventId while discarding all the motion events that occurred prior to the event represented by the eventId. Returns null if this event was popped or discarded.
-