VMECameraListener

interface VMECameraListener

Listener interface for when the camera is moved.

Since

1.24

val cameraListener : VMECameraListener = object : VMECameraListener {
override fun mapCameraDidMove() {
// Your code here
// eg. get the camera context
VMECameraContext cameraContext = mapController.getCameraContext()
}
}

You can add or remove the listener like below

mapController.addCameraListener(cameraListener) mapController.removeCameraListener(cameraListener)

Functions

Link copied to clipboard
abstract fun mapCameraDidMove()

Notifies the listener that the camera has moved. Called repeatedly as the camera continues to move. This may be called as often as once every frame and should not perform expensive operations.