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

MarkersCallbackExtension

interface MarkersCallbackExtension

Callback interface for methods that are called to register for markers events.

Functions

addOnMarkerClickListener

abstract fun addOnMarkerClickListener(listener: TomtomMapCallback.OnMarkerClickListener!): Unit

Called to add a listener for marker clicks.

addOnMarkerDragListener

abstract fun addOnMarkerDragListener(listener: TomtomMapCallback.OnMarkerDragListener!): Unit

Called to add a listener for marker dragging.

removeOnMarkerClickListener

abstract fun removeOnMarkerClickListener(listener: TomtomMapCallback.OnMarkerClickListener!): Unit

Called to remove a listener for marker clicks.

removeOnMarkerClickListeners

abstract fun removeOnMarkerClickListeners(): Unit

Remove all registered marker click listeners.

removeOnMarkerDragListener

abstract fun removeOnMarkerDragListener(listener: TomtomMapCallback.OnMarkerDragListener!): Unit

Called to remove a listener for marker dragging.

removeOnMarkerDragListeners

abstract fun removeOnMarkerDragListeners(): Unit

Remove all registered marker drag listeners.

Inheritors

MarkerSettings

interface MarkerSettings : MarkerExtension, MarkersCallbackExtension, Persistable, TomtomMapCallback.OnMapTapListener, TomtomMapCallback.OnMapChangedListener

Advanced settings for markers manipulation. To obtain this interface, call TomtomMap.getMarkerSettings

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.