sdk-maps / com.tomtom.online.sdk.map / MapCallbacksExtension

MapCallbacksExtension

interface MapCallbacksExtension

Interface defining callbacks regarded map events.

Functions

addOnMapChangedListener

abstract fun addOnMapChangedListener(onMapChangedListener: TomtomMapCallback.OnMapChangedListener!): Unit

Set callback interface that is executed when the map status is changed.

addOnMapClickListener

abstract fun addOnMapClickListener(listener: TomtomMapCallback.OnMapClickListener!): Unit

Set callback interface that is executed when the user click on the map.

addOnMapDoubleClickListener

abstract fun addOnMapDoubleClickListener(listener: TomtomMapCallback.OnMapDoubleClickListener!): Unit

Set callback interface that is executed when the user performs a double-click on the map.

addOnMapLongClickListener

abstract fun addOnMapLongClickListener(listener: TomtomMapCallback.OnMapLongClickListener!): Unit

Set callback interface that is executed when the user long click on the map.

addOnMapPanningListener

abstract fun addOnMapPanningListener(onMapPanningListener: TomtomMapCallback.OnMapPanningListener!): Unit

Set callback interface that is executed when the map panning is executed.

addOnMapRotateListener

abstract fun addOnMapRotateListener(listener: TomtomMapCallback.OnMapRotateListener!): Unit

Set callback interface that is executed when the user rotates the map.

addOnMapViewPortChangedListener

abstract fun addOnMapViewPortChangedListener(onMapViewPortChangedListener: TomtomMapCallback.OnMapViewPortChanged!): Unit

Set callback interface that is executed when the map view port is changed. It happens when e.g., a map is panned or zoomed.

getOnMapChangedListener

abstract fun getOnMapChangedListener(): CallbackContainer<TomtomMapCallback.OnMapChangedListener!>!

Returns a container of the assigned map changed listener. If no listener had been assigned then the returned container is empty.

getOnMapClickListener

abstract fun getOnMapClickListener(): CallbackContainer<TomtomMapCallback.OnMapClickListener!>!

Returns a container of the assigned map click listener. If no listener had been assigned then the returned container is empty.

getOnMapDoubleClickListener

abstract fun getOnMapDoubleClickListener(): CallbackContainer<TomtomMapCallback.OnMapDoubleClickListener!>!

Returns a container of the assigned map double-click listener. If no listener had been assigned then the returned container is empty.

getOnMapLongClickListener

abstract fun getOnMapLongClickListener(): CallbackContainer<TomtomMapCallback.OnMapLongClickListener!>!

Returns a container of the assigned map long click listener. If no listener had been assigned then the returned container is empty.

getOnMapPanningListener

abstract fun getOnMapPanningListener(): CallbackContainer<TomtomMapCallback.OnMapPanningListener!>!

Returns a container of the assigned map panning listener. If no listener had been assigned then the returned container is empty.

getOnMapRotateListener

abstract fun getOnMapRotateListener(): CallbackContainer<TomtomMapCallback.OnMapRotateListener!>!

Returns a container of the assigned map rotate listener. If no listener had been assigned then the returned container is empty.

getOnMapViewPortChangedListener

abstract fun getOnMapViewPortChangedListener(): CallbackContainer<TomtomMapCallback.OnMapViewPortChanged!>!

Returns a container of the assigned map ViewPort changes listener. If no listener had been assigned then the returned container is empty.

removeOnMapChangedListener

abstract fun removeOnMapChangedListener(listener: TomtomMapCallback.OnMapChangedListener!): Unit

Unregister the map changed listener.

removeOnMapClickListener

abstract fun removeOnMapClickListener(listener: TomtomMapCallback.OnMapClickListener!): Unit

Unregister the map click listener given as the parameter.

removeOnMapDoubleClickListener

abstract fun removeOnMapDoubleClickListener(listener: TomtomMapCallback.OnMapDoubleClickListener!): Unit

Unregister the map double-click listener given as the parameter.

removeOnMapLongClickListener

abstract fun removeOnMapLongClickListener(listener: TomtomMapCallback.OnMapLongClickListener!): Unit

Unregister the map long listener given as the parameter.

removeOnMapPanningListener

abstract fun removeOnMapPanningListener(listener: TomtomMapCallback.OnMapPanningListener!): Unit

Unregister the map panning listener.

removeOnMapRotateListener

abstract fun removeOnMapRotateListener(listener: TomtomMapCallback.OnMapRotateListener!): Unit

Unregister the map rotate listener given as the parameter.

removeOnMapViewPortChangedListener

abstract fun removeOnMapViewPortChangedListener(listener: TomtomMapCallback.OnMapViewPortChanged!): Unit

Unregister the map view port changes listener.

Inheritors

TomtomMap

interface TomtomMap : RouteExtension, MarkerExtension, MapManipulationExtension, MapInfoExtension, MapCallbacksExtension, MapViewExtension, MarkersCallbackExtension, OverlaysCallbackExtension, RouteCallbackExtension, LocationSourceExtension, OnRequestPermissionsResultCallback

Interface that is the main entry point for all methods related to the map. TomtomMap is obtained using the MapFragment#getAsyncMap(OnMapReadyCallback) method on a MapFragment.