public abstract static class MapGesture.OnGestureListener.OnGestureListenerAdapter extends java.lang.Object implements MapGesture.OnGestureListener
MapGesture.OnGestureListener
MapGesture.OnGestureListener.OnGestureListenerAdapter
Constructor and Description |
---|
OnGestureListenerAdapter() |
Modifier and Type | Method and Description |
---|---|
boolean |
onDoubleTapEvent(android.graphics.PointF p)
A callback indicating that a user has performed a double tap gesture on a map.
|
boolean |
onLongPressEvent(android.graphics.PointF p)
A callback indicating that a user has performed a long-press gesture on a map.
|
void |
onLongPressRelease()
A callback indicating that a user has released a long-press gesture on a map.
|
boolean |
onMapObjectsSelected(java.util.List<ViewObject> objects)
A callback indicating that at least one
ViewObject has been selected as a result
of a user tapping on the map. |
void |
onMultiFingerManipulationEnd()
A callback indicating the user has removed all or all-except-one fingers from the screen.
|
void |
onMultiFingerManipulationStart()
A callback indicating the user has put more than one finger onto the screen.
|
void |
onPanEnd()
A callback indicating the user has lifted up their finger and stopped panning.
|
void |
onPanStart()
A callback indicating the user has put one finger on the screen and moved their finger to
trigger panning.
|
void |
onPinchLocked()
A callback indicating that a user has pinched enough to be recognized as the two-finger
zoom gesture.
|
boolean |
onPinchZoomEvent(float scaleFactor,
android.graphics.PointF p)
A callback indicating that a user has performed a pinch-to-zoom gesture on a map.
|
boolean |
onRotateEvent(float rotateAngle)
A callback indicating that a user has performed a rotate gesture on a map.
|
void |
onRotateLocked()
A callback indicating that a user has rotated enough to be recognized as the two-finger
rotation gesture.
|
boolean |
onTapEvent(android.graphics.PointF p)
A callback indicating that a user has performed a single-tap gesture on a map.
|
boolean |
onTiltEvent(float angle)
A callback indicating that a user has performed a two-finger-tilt gesture on a map.
|
boolean |
onTwoFingerTapEvent(android.graphics.PointF p)
A callback indicating that a user has performed a two-finger tap gesture on a map.
|
public void onPanStart()
MapGesture.OnGestureListener
onPanStart
in interface MapGesture.OnGestureListener
public void onPanEnd()
MapGesture.OnGestureListener
onPanEnd
in interface MapGesture.OnGestureListener
public void onMultiFingerManipulationStart()
MapGesture.OnGestureListener
public void onMultiFingerManipulationEnd()
MapGesture.OnGestureListener
onMultiFingerManipulationEnd
in interface MapGesture.OnGestureListener
public boolean onMapObjectsSelected(java.util.List<ViewObject> objects)
MapGesture.OnGestureListener
ViewObject
has been selected as a result
of a user tapping on the map.
If the user tapping on the map results in ViewObject
selection (there are
selectable objects located at the tap point), this callback will be made after
MapGesture.OnGestureListener.onTapEvent(PointF)
, if and only if, false
is returned for that callback.
onMapObjectsSelected
in interface MapGesture.OnGestureListener
objects
- A list of selected ViewObject
objectstrue
if consumed, false otherwiseMap.getSelectedObjects(PointF)
public boolean onTapEvent(android.graphics.PointF p)
MapGesture.OnGestureListener
If true
is returned from this callback, no MapGesture.OnGestureListener.onMapObjectsSelected(List)
callback will be made to any gesture subscribers even if any objects are found at the
screen point.
onTapEvent
in interface MapGesture.OnGestureListener
p
- A PointF
representing the on-screen point of the single-tap gesturetrue
if consumed (which prevents the default pan-to-here behavior),
false
otherwise.Map.getSelectedObjects(PointF)
public boolean onDoubleTapEvent(android.graphics.PointF p)
MapGesture.OnGestureListener
onDoubleTapEvent
in interface MapGesture.OnGestureListener
p
- A PointF
representing the on-screen point of the double-tap gesturepublic void onPinchLocked()
MapGesture.OnGestureListener
MapGesture
is set to exclusive
mode from MapGesture.setPinchEnabled(boolean)
.onPinchLocked
in interface MapGesture.OnGestureListener
MapGesture.setPinchEnabled(boolean)
public boolean onPinchZoomEvent(float scaleFactor, android.graphics.PointF p)
MapGesture.OnGestureListener
onPinchZoomEvent
in interface MapGesture.OnGestureListener
scaleFactor
- A scale factor relative to the points of the two simultaneous touches at
separate screen coordinatesp
- A PointF
representing the on-screen point of the pinch gesturepublic void onRotateLocked()
MapGesture.OnGestureListener
MapGesture
is set to exclusive
mode from MapGesture.setRotateEnabled(boolean)
onRotateLocked
in interface MapGesture.OnGestureListener
MapGesture.setRotateEnabled(boolean)
public boolean onRotateEvent(float rotateAngle)
MapGesture.OnGestureListener
onRotateEvent
in interface MapGesture.OnGestureListener
rotateAngle
- An angle, in degrees, of the user interaction gesture since its last changepublic boolean onTiltEvent(float angle)
MapGesture.OnGestureListener
onTiltEvent
in interface MapGesture.OnGestureListener
angle
- An angle, in degrees, to which the map tilt is to change.public boolean onLongPressEvent(android.graphics.PointF p)
MapGesture.OnGestureListener
If a MapMarker
with dragging enabled is located at the same location, returning
true
for this method will nullify that setting.
onLongPressEvent
in interface MapGesture.OnGestureListener
p
- A PointF
representing the on-screen point where a user has
long-pressedMapMarker.setDraggable(boolean)
public boolean onTwoFingerTapEvent(android.graphics.PointF p)
MapGesture.OnGestureListener
onTwoFingerTapEvent
in interface MapGesture.OnGestureListener
p
- A PointF
representing the on-screen point where the two-finger tap
occurredpublic void onLongPressRelease()
MapGesture.OnGestureListener
This callback may also occur when the user has panned around the map.
onLongPressRelease
in interface MapGesture.OnGestureListener