java.lang.Object | |
↳ | com.esri.android.map.MapOnTouchListener |
An interface definition for a callback to be invoked when a touch event is dispatched to a MapView. The callback will be invoked before the touch event is given to the MapView.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public static int | PINCH_ZOOM_TOLERANECE_INDEGREE | The PINC h_ zoo m_ toleranec e_ indegree. | |||||||||
public static int | SENSITIVITY_TOLERANCE_INPIXEL | The SENSITIVIT y_ toleranc e_ inpixel. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MapOnTouchListener(Context context, MapView view)
Instantiates an object of MapOnTouchListener with the activity context and the MapView.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
onDoubleTap(MotionEvent point)
Notified when a single-pointer-double-tap gesture occurs.
| ||||||||||
boolean |
onDragPointerMove(MotionEvent from, MotionEvent to)
Notified when a part of a single touch drag gesture event occurs.
| ||||||||||
boolean |
onDragPointerUp(MotionEvent from, MotionEvent to)
Notified when a part of a single-touch-drag gesture event occurs.
| ||||||||||
void |
onLongPress(MotionEvent point)
Notified when a long-press gesture occurs.
| ||||||||||
void |
onMultiPointersSingleTap(MotionEvent event)
Notified when a two-pointers-single-tap gesture occurs.
| ||||||||||
boolean |
onPinchPointersDown(MotionEvent event)
Notified when a part of a pinch gesture occurs.
| ||||||||||
boolean |
onPinchPointersMove(MotionEvent event)
Notified when a part of a pinch gesture occurs.
| ||||||||||
boolean |
onPinchPointersUp(MotionEvent event)
Notified when a part of a pinch gesture occurs.
| ||||||||||
boolean |
onSingleTap(MotionEvent point)
Notified when a single-pointer-single-tap gesture occurs.
| ||||||||||
boolean |
onTouch(View v, MotionEvent event)
Called when a touch event is dispatched to a view.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.view.View.OnTouchListener
| |||||||||||
From interface
com.esri.android.map.MapGestureDetector.OnGestureListener
|
The PINC h_ zoo m_ toleranec e_ indegree.
The SENSITIVIT y_ toleranc e_ inpixel.
Instantiates an object of MapOnTouchListener with the activity context and the MapView.
context | the activity context. |
---|---|
view | the MapView that will be dispatching the events. |
Notified when a single-pointer-double-tap gesture occurs. The motion event contains the final movement of the gesture.
point | the point |
---|
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.
event | the event |
---|
Notified when a part of a pinch gesture occurs. The gesture has started as a two pointers down motion.
event | the event |
---|
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);
event | the event |
---|
Notified when a part of a pinch gesture occurs. The pinch gesture has finished. The motion event contains the final movement of the gesture.
event | the event |
---|
Notified when a single-pointer-single-tap gesture occurs. The motion event contains the initial movement of the gesture.
point | the point |
---|
Called when a touch event is dispatched to a view. This allows listeners to get a chance to respond before the target MapView.
v | the v |
---|---|
event | the event |