com.esri.android.map.MapGestureDetector.OnGestureListener |
Known Indirect Subclasses |
The listener that is used to notify when gestures occur. If you want to listen for all the different gestures then implement this interface.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract boolean |
onDoubleTap(MotionEvent point)
Notified when a single-pointer-double-tap gesture occurs.
| ||||||||||
abstract boolean |
onDragPointerMove(MotionEvent from, MotionEvent to)
Notified when a part of a single touch drag gesture event occurs.
| ||||||||||
abstract boolean |
onDragPointerUp(MotionEvent from, MotionEvent to)
Notified when a part of a single-touch-drag gesture event occurs.
| ||||||||||
abstract void |
onLongPress(MotionEvent point)
Notified when a long-press gesture occurs.
| ||||||||||
abstract void |
onMultiPointersSingleTap(MotionEvent event)
Notified when a two-pointers-single-tap gesture occurs.
| ||||||||||
abstract boolean |
onPinchPointersDown(MotionEvent event)
Notified when a part of a pinch gesture occurs.
| ||||||||||
abstract boolean |
onPinchPointersMove(MotionEvent event)
Notified when a part of a pinch gesture occurs.
| ||||||||||
abstract boolean |
onPinchPointersUp(MotionEvent event)
Notified when a part of a pinch gesture occurs.
| ||||||||||
abstract boolean |
onSingleTap(MotionEvent point)
Notified when a single-pointer-double-tap gesture occurs.
|
Notified when a single-pointer-double-tap gesture occurs. The motion event contains the final movement of the gesture.
Notified when a part of a single touch drag gesture event occurs. The touch pointer is moving from the "from" point to the "to" point.
from | The MotionEvent object containing full information about the "from" point. |
---|---|
to | The MotionEvent object containing full information about the "to" point. |
Notified when a part of a single-touch-drag gesture event occurs. The drag gesture has finished. The motion events contain the final movement of the gesture.
from | The MotionEvent object containing full information about the "from" point. |
---|---|
to | The MotionEvent object containing full information about the "to" point. |
Notified when a long-press gesture occurs. The motion event contains the initial movement of the gesture.
point | The initial on down motion event that started the longpress. |
---|
Notified when a two-pointers-single-tap gesture occurs. The motion event contains the final movement of the gesture.
Notified when a part of a pinch gesture occurs. The gesture has started as a two pointers down motion.
Notified when a part of a pinch gesture occurs. The two pointers of the gesture have moved. To get the move pointers you can:
float x1 = event.getX(0), y1 = event.getY(0), x2 = event.getX(1), y2 = event.getY(1);
Notified when a part of a pinch gesture occurs. The pinch gesture has finished. The motion event contains the final movement of the gesture.
Notified when a single-pointer-double-tap gesture occurs. The motion event contains the initial movement of the gesture.