HERE Android SDK Developer's Guide

OnGestureListenerAdapter

The class OnGestureListenerAdapter is a member of com.here.android.mpa.mapping.MapGesture.OnGestureListener.

Class Summary

public static abstract class MapGesture.OnGestureListener.OnGestureListenerAdapter

   implements com.here.android.mpa.mapping.MapGesture.OnGestureListener

extends java.lang.Object

Default implementation for the OnGestureListener interface.

[For complete information, see the section Class Details]

See also:

MapGesture.OnGestureListener

Constructor Summary

Table 1. Constructors in OnGestureListenerAdapter
Constructors

OnGestureListenerAdapter ()

Method Summary

Table 2. Methods in OnGestureListenerAdapter
Methods

public boolean onDoubleTapEvent (PointF p)

A callback indicating that a user has performed a double tap gesture on a map.

This method overrides mapping.MapGesture.OnGestureListener.onDoubleTapEvent(PointF)

public boolean onLongPressEvent (PointF p)

A callback indicating that a user has performed a long-press gesture on a map.

This method overrides mapping.MapGesture.OnGestureListener.onLongPressEvent(PointF)

public void onLongPressRelease ()

A callback indicating that a user has released a long-press gesture on a map.

This method overrides mapping.MapGesture.OnGestureListener.onLongPressRelease(void)

public 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.

This method overrides mapping.MapGesture.OnGestureListener.onMapObjectsSelected(List)

public void onMultiFingerManipulationEnd ()

A callback indicating the user has removed all or all-except-one fingers from the screen.

This method overrides mapping.MapGesture.OnGestureListener.onMultiFingerManipulationEnd(void)

public void onMultiFingerManipulationStart ()

A callback indicating the user has put more than one finger onto the screen.

This method overrides mapping.MapGesture.OnGestureListener.onMultiFingerManipulationStart(void)

public void onPanEnd ()

A callback indicating the user has lifted up their finger and stopped panning.

This method overrides mapping.MapGesture.OnGestureListener.onPanEnd(void)

public void onPanStart ()

A callback indicating the user has put one finger on the screen and moved their finger to trigger panning.

This method overrides mapping.MapGesture.OnGestureListener.onPanStart(void)

public void onPinchLocked ()

A callback indicating that a user has pinched enough to be recognized as the two-finger zoom gesture.

This method overrides mapping.MapGesture.OnGestureListener.onPinchLocked(void)

public boolean onPinchZoomEvent (float scaleFactor, PointF p)

A callback indicating that a user has performed a pinch-to-zoom gesture on a map.

This method overrides mapping.MapGesture.OnGestureListener.onPinchZoomEvent(float, PointF)

public boolean onRotateEvent (float rotateAngle)

A callback indicating that a user has performed a rotate gesture on a map.

This method overrides mapping.MapGesture.OnGestureListener.onRotateEvent(float)

public void onRotateLocked ()

A callback indicating that a user has rotated enough to be recognized as the two-finger rotation gesture.

This method overrides mapping.MapGesture.OnGestureListener.onRotateLocked(void)

public boolean onTapEvent (PointF p)

A callback indicating that a user has performed a single-tap gesture on a map.

This method overrides mapping.MapGesture.OnGestureListener.onTapEvent(PointF)

public boolean onTiltEvent (float angle)

A callback indicating that a user has performed a two-finger-tilt gesture on a map.

This method overrides mapping.MapGesture.OnGestureListener.onTiltEvent(float)

public boolean onTwoFingerTapEvent (PointF p)

A callback indicating that a user has performed a two-finger tap gesture on a map.

This method overrides mapping.MapGesture.OnGestureListener.onTwoFingerTapEvent(PointF)

Class Details

Default implementation for the OnGestureListener interface. Users may use this abstract class and overload specific methods to have a smaller code footprint.

See also:

MapGesture.OnGestureListener

Constructor Details

OnGestureListenerAdapter ()

Method Details

public boolean onDoubleTapEvent (PointF p)

A callback indicating that a user has performed a double tap gesture on a map.

This method overrides mapping.MapGesture.OnGestureListener.onDoubleTapEvent(PointF)

Parameters:

  • p

public boolean onLongPressEvent (PointF p)

A callback indicating that a user has performed a long-press gesture on a map.

If a MapMarker with dragging enabled is located at the same location, returning true for this method will nullify that setting.

This method overrides mapping.MapGesture.OnGestureListener.onLongPressEvent(PointF)

Parameters:

  • p

public void onLongPressRelease ()

A callback indicating that a user has released a long-press gesture on a map.

This callback may also occur when the user has panned around the map.

This method overrides mapping.MapGesture.OnGestureListener.onLongPressRelease(void)

public 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.

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 onTapEvent(PointF), if and only if, false is returned for that callback.

This method overrides mapping.MapGesture.OnGestureListener.onMapObjectsSelected(List)

Parameters:

  • objects

public void onMultiFingerManipulationEnd ()

A callback indicating the user has removed all or all-except-one fingers from the screen.

This method overrides mapping.MapGesture.OnGestureListener.onMultiFingerManipulationEnd(void)

public void onMultiFingerManipulationStart ()

A callback indicating the user has put more than one finger onto the screen. Pinch, Rotate or Tilt manipulation events may also be called back.

This method overrides mapping.MapGesture.OnGestureListener.onMultiFingerManipulationStart(void)

public void onPanEnd ()

A callback indicating the user has lifted up their finger and stopped panning.

This method overrides mapping.MapGesture.OnGestureListener.onPanEnd(void)

public void onPanStart ()

A callback indicating the user has put one finger on the screen and moved their finger to trigger panning.

This method overrides mapping.MapGesture.OnGestureListener.onPanStart(void)

public void onPinchLocked ()

A callback indicating that a user has pinched enough to be recognized as the two-finger zoom gesture. This callback will only occur if MapGesture is set to exclusive mode from setPinchEnabled(boolean).

This method overrides mapping.MapGesture.OnGestureListener.onPinchLocked(void)

public boolean onPinchZoomEvent (float scaleFactor, PointF p)

A callback indicating that a user has performed a pinch-to-zoom gesture on a map.

This method overrides mapping.MapGesture.OnGestureListener.onPinchZoomEvent(float, PointF)

Parameters:

  • scaleFactor
  • p

public boolean onRotateEvent (float rotateAngle)

A callback indicating that a user has performed a rotate gesture on a map.

This method overrides mapping.MapGesture.OnGestureListener.onRotateEvent(float)

Parameters:

  • rotateAngle

public void onRotateLocked ()

A callback indicating that a user has rotated enough to be recognized as the two-finger rotation gesture. This callback will only occur if MapGesture is set to exclusive mode from setRotateEnabled(boolean)

This method overrides mapping.MapGesture.OnGestureListener.onRotateLocked(void)

public boolean onTapEvent (PointF p)

A callback indicating that a user has performed a single-tap gesture on a map.

If true is returned from this callback, no onMapObjectsSelected(List) callback will be made to any gesture subscribers even if any objects are found at the screen point.

This method overrides mapping.MapGesture.OnGestureListener.onTapEvent(PointF)

Parameters:

  • p

public boolean onTiltEvent (float angle)

A callback indicating that a user has performed a two-finger-tilt gesture on a map.

This method overrides mapping.MapGesture.OnGestureListener.onTiltEvent(float)

Parameters:

  • angle

public boolean onTwoFingerTapEvent (PointF p)

A callback indicating that a user has performed a two-finger tap gesture on a map.

This method overrides mapping.MapGesture.OnGestureListener.onTwoFingerTapEvent(PointF)

Parameters:

  • p