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

Sets a callback interface that is executed when the map status is changed.

addOnMapClickListener

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

Sets a callback interface that is executed when the user clicks 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

Sets a callback interface that is executed when the map panning is executed.

addOnMapRotateListener

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

Sets a callback interface that is executed when the user rotates the map.

addOnMapViewPortChangedListener

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

Sets a callback interface that is executed when the map view port is changed. For example, it happens when a map is panned or zoomed. Use CameraCallbacksExtension#addOnCameraChangedListener(TomtomMapCallback.OnCameraChangedListener)

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. Use CameraCallbacksExtension#removeOnCameraChangedListener(TomtomMapCallback.OnCameraChangedListener)

Inheritors

TomtomMap

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

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.