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

CameraCallbacksExtension

interface CameraCallbacksExtension

Interface defining callbacks regarded to camera events.

Functions

addOnCameraChangedListener

abstract fun addOnCameraChangedListener(listener: TomtomMapCallback.OnCameraChangedListener): Unit

Adds a listener that is executed when the camera has changed. For example, it happens when a map is panned or zoomed.

addOnCameraMoveCanceledListener

abstract fun addOnCameraMoveCanceledListener(listener: TomtomMapCallback.OnCameraMoveCanceledListener): Unit

Registers a listener that will be executed when the camera move is canceled.

addOnCameraMoveFinishedListener

abstract fun addOnCameraMoveFinishedListener(listener: TomtomMapCallback.OnCameraMoveFinishedListener): Unit

Registers a listener that will be executed when the camera move is completed.

addOnCameraMoveListener

abstract fun addOnCameraMoveListener(listener: TomtomMapCallback.OnCameraMoveListener): Unit

Registers a listener that will be executed when the camera move is in progress.

addOnCameraMoveStartedListener

abstract fun addOnCameraMoveStartedListener(listener: TomtomMapCallback.OnCameraMoveStartedListener): Unit

Registers a listener that will be executed when the camera starts moving.

removeOnCameraChangedListener

abstract fun removeOnCameraChangedListener(listener: TomtomMapCallback.OnCameraChangedListener): Unit

Removes the previously added listener.

removeOnCameraMoveCanceledListener

abstract fun removeOnCameraMoveCanceledListener(listener: TomtomMapCallback.OnCameraMoveCanceledListener): Unit

Unregisters the TomtomMapCallback.OnCameraMoveCanceledListener.

removeOnCameraMoveFinishedListener

abstract fun removeOnCameraMoveFinishedListener(listener: TomtomMapCallback.OnCameraMoveFinishedListener): Unit

Unregisters the TomtomMapCallback.OnCameraMoveFinishedListener.

removeOnCameraMoveListener

abstract fun removeOnCameraMoveListener(listener: TomtomMapCallback.OnCameraMoveListener): Unit

Unregisters the TomtomMapCallback.OnCameraMoveListener.

removeOnCameraMoveStartedListener

abstract fun removeOnCameraMoveStartedListener(listener: TomtomMapCallback.OnCameraMoveStartedListener): Unit

Unregisters the TomtomMapCallback.OnCameraMoveStartedListener.

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.