com.eightmotions.map
Interface MapDisplayListener


public interface MapDisplayListener

Can be used by an external class, to register to some event received by the canvas, and modify envetually the default behavior (mainly for key press.

The other feedback (oneLocationSelected) is called when the user select either with the keyboard of the touchscreen a specific location


Method Summary
 boolean mapKeyPressed(MapDisplay c, int code)
          Called when a key has been pressed.
 boolean oneLocationSelected(MapDisplay c, Marker theLoc)
          Callback called when the user select a location in the map
 void onMoveEnd(MapDisplay c)
          The map has stop to move...
 

Method Detail

oneLocationSelected

boolean oneLocationSelected(MapDisplay c,
                            Marker theLoc)
Callback called when the user select a location in the map

Parameters:
theLoc - return true if default behavior (switch map/satellite) needs to be applied also

mapKeyPressed

boolean mapKeyPressed(MapDisplay c,
                      int code)
Called when a key has been pressed. Note: return true to keep default behavior...

Parameters:
started -
Returns:

onMoveEnd

void onMoveEnd(MapDisplay c)
The map has stop to move...