|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.android.map.MapOnTouchListener
public class 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.
| Constructor Summary | |
|---|---|
MapOnTouchListener(android.content.Context context,
MapView view)
Instantiates an object of MapOnTouchListener with the activity context and the MapView. |
|
| Method Summary | |
|---|---|
boolean |
onDoubleTap(android.view.MotionEvent point)
Notified when a single-pointer-double-tap gesture occurs. |
boolean |
onDragPointerMove(android.view.MotionEvent from,
android.view.MotionEvent to)
Notified when a part of a single touch drag gesture event occurs. |
boolean |
onDragPointerUp(android.view.MotionEvent from,
android.view.MotionEvent to)
Notified when a part of a single-touch-drag gesture event occurs. |
void |
onLongPress(android.view.MotionEvent point)
Notified when a long-press gesture occurs. |
void |
onMultiPointersSingleTap(android.view.MotionEvent event)
Notified when a two-pointers-single-tap gesture occurs. |
boolean |
onPinchPointersDown(android.view.MotionEvent event)
Notified when a part of a pinch gesture occurs. |
boolean |
onPinchPointersMove(android.view.MotionEvent event)
Notified when a part of a pinch gesture occurs. |
boolean |
onPinchPointersUp(android.view.MotionEvent event)
Notified when a part of a pinch gesture occurs. |
boolean |
onSingleTap(android.view.MotionEvent point)
Notified when a single-pointer-single-tap gesture occurs. |
boolean |
onTouch(android.view.View v,
android.view.MotionEvent event)
Called when a touch event is dispatched to a view. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MapOnTouchListener(android.content.Context context,
MapView view)
context - the activity context.view - the MapView that will be dispatching the events.| Method Detail |
|---|
public boolean onTouch(android.view.View v,
android.view.MotionEvent event)
onTouch in interface android.view.View.OnTouchListener
public boolean onDragPointerMove(android.view.MotionEvent from,
android.view.MotionEvent to)
onDragPointerMove in interface MapGestureDetector.OnGestureListenerfrom - The MotionEvent object containing full information about the "from" point.to - The MotionEvent object containing full information about the "to" point.
onDragPointerUp(MotionEvent, MotionEvent)
public boolean onDragPointerUp(android.view.MotionEvent from,
android.view.MotionEvent to)
onDragPointerUp in interface MapGestureDetector.OnGestureListenerfrom - The MotionEvent object containing full information about the "from" point.to - The MotionEvent object containing full information about the "to" point.
onDragPointerMove(MotionEvent, MotionEvent)public boolean onPinchPointersDown(android.view.MotionEvent event)
onPinchPointersDown in interface MapGestureDetector.OnGestureListeneronPinchPointersMove(MotionEvent),
onPinchPointersUp(MotionEvent)public boolean onPinchPointersMove(android.view.MotionEvent event)
float x1 = event.getX(0), y1 = event.getY(0), x2 = event.getX(1), y2 = event.getY(1);
onPinchPointersMove in interface MapGestureDetector.OnGestureListener
onPinchPointersDown(MotionEvent),
onPinchPointersUp(MotionEvent)
public boolean onPinchPointersUp(android.view.MotionEvent event)
onPinchPointersUp in interface MapGestureDetector.OnGestureListeneronPinchPointersDown(MotionEvent),
onPinchPointersMove(MotionEvent)public boolean onDoubleTap(android.view.MotionEvent point)
onDoubleTap in interface MapGestureDetector.OnGestureListenerpublic void onMultiPointersSingleTap(android.view.MotionEvent event)
onMultiPointersSingleTap in interface MapGestureDetector.OnGestureListenerpublic void onLongPress(android.view.MotionEvent point)
onLongPress in interface MapGestureDetector.OnGestureListenerpoint - The initial on down motion event that started the longpress.public boolean onSingleTap(android.view.MotionEvent point)
onSingleTap in interface MapGestureDetector.OnGestureListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||