java.lang.Object | |
↳ | com.carto.ui.MapEventListener |
Listener for events like map clicks etc.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MapEventListener() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void | delete() | ||||||||||
void |
onMapClicked(MapClickInfo mapClickInfo)
Listener method that gets called when a click is performed on an empty area of the map.
| ||||||||||
void |
onMapIdle()
Listener method that gets called at the end of the rendering process when the
map view needs no further refreshing. | ||||||||||
void |
onMapInteraction(MapInteractionInfo mapInteractionInfo)
Listener method that gets called when user has interacted with the map.
| ||||||||||
void |
onMapMoved()
Listener method that gets called when the map is panned, rotated, tilted or zoomed.
| ||||||||||
void |
onMapStable()
Listener method that gets called when map is in 'stable' state - map animations have finished,
user has lifted fingers from the screen. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Listener method that gets called when a click is performed on an empty area of the map.
This method will NOT be called from the main thread.
mapClickInfo | A container that provides information about the click. |
---|
Listener method that gets called at the end of the rendering process when the
map view needs no further refreshing.
Note that there can still be background processes (tile loading) that may change
the map view but these may take long time.
This method is called from GL renderer thread, not from main thread.
Listener method that gets called when user has interacted with the map. The callback
includes info about interaction type (panning, zooming, etc).
mapInteractionInfo | A container that provides information about the interaction. |
---|
Listener method that gets called when the map is panned, rotated, tilted or zoomed.
The callback is used for both UI events and map changes resulting from API calls.
It is recommended to use onMapInteraction callback instead of onMapMoved, if possible.
Doing any calls to update MapView state from this method is potentially dangerous and may
result in deadlocks or crashes.
The thread this method is called from may vary.
Listener method that gets called when map is in 'stable' state - map animations have finished,
user has lifted fingers from the screen. This method is similar to onMapIdle, but is called less
frequently and takes account touch state.
The thread this method is called from may vary.