HERE Android SDK Developer's Guide

OnGestureListenerAdapter

The class OnGestureListenerAdapter is a member of com.here.android.mpa.streetlevel.StreetLevelGesture.OnGestureListener.

Class Summary

public static abstract class StreetLevelGesture.OnGestureListener.OnGestureListenerAdapter

   implements com.here.android.mpa.streetlevel.StreetLevelGesture.OnGestureListener

extends java.lang.Object

Default implementation for the OnGestureListener interface.

[For complete information, see the section Class Details]

See also:

StreetLevelGesture.OnGestureListener

Constructor Summary

Table 1. Constructors in OnGestureListenerAdapter
Constructors

OnGestureListenerAdapter ()

Method Summary

Table 2. Methods in OnGestureListenerAdapter
Methods

public boolean onCompassSelected ()

A callback indicating that the compass within the StreetLevelFragment has been selected.

This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onCompassSelected(void)

public boolean onDoubleTap (PointF p)

A callback indicating the detection of a double tap user gesture within the StreetLevelFragment.

This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onDoubleTap(PointF)

public boolean onObjectsSelected (java.util.List <StreetLevelSelectedObject> selectedObjects)

A callback indicating that one or more objects within the StreetLevelFragment has been selected.

This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onObjectsSelected(List)

public boolean onPinchZoom (float scaleFactor)

A callback indicating the detection of a pinch-to-zoom user gesture within the StreetLevelFragment.

This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onPinchZoom(float)

public boolean onRotate (PointF from, PointF to)

A callback indicating the detection of a rotation or tilt user gesture within the StreetLevelFragment.

This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onRotate(PointF, PointF)

public boolean onTap (PointF p)

A callback indicating the detection of a tap user gesture within the StreetLevelFragment.

This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onTap(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:

StreetLevelGesture.OnGestureListener

Constructor Details

OnGestureListenerAdapter ()

Method Details

public boolean onCompassSelected ()

A callback indicating that the compass within the StreetLevelFragment has been selected.

This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onCompassSelected(void)

public boolean onDoubleTap (PointF p)

A callback indicating the detection of a double tap user gesture within the StreetLevelFragment.

This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onDoubleTap(PointF)

Parameters:

  • p

public boolean onObjectsSelected (java.util.List <StreetLevelSelectedObject> selectedObjects)

A callback indicating that one or more objects within the StreetLevelFragment has been selected.

This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onObjectsSelected(List)

Parameters:

  • selectedObjects

public boolean onPinchZoom (float scaleFactor)

A callback indicating the detection of a pinch-to-zoom user gesture within the StreetLevelFragment.

This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onPinchZoom(float)

Parameters:

  • scaleFactor

public boolean onRotate (PointF from, PointF to)

A callback indicating the detection of a rotation or tilt user gesture within the StreetLevelFragment.

This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onRotate(PointF, PointF)

Parameters:

  • from
  • to

public boolean onTap (PointF p)

A callback indicating the detection of a tap user gesture within the StreetLevelFragment.

This method overrides streetlevel.StreetLevelGesture.OnGestureListener.onTap(PointF)

Parameters:

  • p