HERE Android SDK Developer's Guide

StreetLevelGesture

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

Class Summary

public class StreetLevelGesture

extends java.lang.Object

Encapsulates all user interactions and gestures that are applicable to a StreetLevelFragment.

[For complete information, see the section Class Details]

Nested Class Summary

Table 1. Nested Classes in StreetLevelGesture
Nested Classes

public static abstract interface StreetLevelGesture.OnGestureListener

Event Listener interface for gesture events.

Method Summary

Table 2. Methods in StreetLevelGesture
Methods

public void addOnGestureListener (OnGestureListener listener)

Adds a StreetLevelGesture.OnGestureListener to listen for map gesture events.

public boolean isDoubleTapEnabled ()

Gets the boolean indicating whether double tap is enabled for the StreetLevelGesture.

public boolean isPinchEnabled ()

Gets the boolean indicating whether pinch is enabled for the StreetLevelGesture.

public boolean isRotationEnabled ()

Gets the boolean indicating whether rotation is enabled for the StreetLevelGesture.

public boolean isTapEnabled ()

Gets the boolean indicating whether tap is enabled for the StreetLevelGesture .

public void removeOnGestureListener (OnGestureListener listener)

Removes an existing StreetLevelGesture.OnGestureListener.

public StreetLevelGesture setAllGesturesEnabled (boolean enabled)

Simultaneously sets every possible kind of gesture interaction to be either enabled or disabled for the StreetLevelGesture.

public StreetLevelGesture setDoubleTapEnabled (boolean enabled)

Sets double tap interaction to be either enabled or disabled for the StreetLevelGesture.

public StreetLevelGesture setPinchEnabled (boolean enabled)

Sets pinch interaction to be either enabled or disabled for the StreetLevelGesture.

public StreetLevelGesture setRotationEnabled (boolean enabled)

Sets rotation interaction to be either enabled or disabled for the StreetLevelGesture .

public StreetLevelGesture setTapEnabled (boolean enabled)

Sets tap interaction to be either enabled or disabled for the StreetLevelGesture.

Class Details

Encapsulates all user interactions and gestures that are applicable to a StreetLevelFragment. By default all gestures are enabled.

Method Details

public void addOnGestureListener (OnGestureListener listener)

Adds a StreetLevelGesture.OnGestureListener to listen for map gesture events.

Note: after you add a StreetLevelGesture.OnGestureListener to an application, remember to call removeOnGestureListener(OnGestureListener) if you no longer need to listen for street level gesture events and want to free up application resources.

Parameters:

See also:

removeOnGestureListener(OnGestureListener)

public boolean isDoubleTapEnabled ()

Gets the boolean indicating whether double tap is enabled for the StreetLevelGesture.

Returns:

True if double tap is enabled, false otherwise

public boolean isPinchEnabled ()

Gets the boolean indicating whether pinch is enabled for the StreetLevelGesture.

Returns:

True if pinch is enabled, false otherwise

public boolean isRotationEnabled ()

Gets the boolean indicating whether rotation is enabled for the StreetLevelGesture.

Returns:

True if rotation is enabled, false otherwise

public boolean isTapEnabled ()

Gets the boolean indicating whether tap is enabled for the StreetLevelGesture .

Returns:

True if tap is enabled, false otherwise

public void removeOnGestureListener (OnGestureListener listener)

Removes an existing StreetLevelGesture.OnGestureListener. Call this method to free up application resources once you no longer need to listen for map gesture events.

Parameters:

public StreetLevelGesture setAllGesturesEnabled (boolean enabled)

Simultaneously sets every possible kind of gesture interaction to be either enabled or disabled for the StreetLevelGesture.

Parameters:

  • enabled

    A boolean specifying whether all gestures are enabled

Returns:

This StreetLevelGesture object

public StreetLevelGesture setDoubleTapEnabled (boolean enabled)

Sets double tap interaction to be either enabled or disabled for the StreetLevelGesture.

Parameters:

  • enabled

    A boolean specifying whether double tap is enabled

Returns:

This StreetLevelGesture object

public StreetLevelGesture setPinchEnabled (boolean enabled)

Sets pinch interaction to be either enabled or disabled for the StreetLevelGesture.

Parameters:

  • enabled

    A boolean specifying whether pinch is enabled

Returns:

This StreetLevelGesture object

public StreetLevelGesture setRotationEnabled (boolean enabled)

Sets rotation interaction to be either enabled or disabled for the StreetLevelGesture .

Parameters:

  • enabled

    A boolean specifying whether rotation is enabled

Returns:

This StreetLevelGesture object

public StreetLevelGesture setTapEnabled (boolean enabled)

Sets tap interaction to be either enabled or disabled for the StreetLevelGesture.

Parameters:

  • enabled

    A boolean specifying whether tap is enabled

Returns:

This StreetLevelGesture object