I would to listen to Zoom level changes.
I tried this solution but it is deprecated.
mMap?.setOnCameraChangeListener(object : OnCameraChangeListener {
private var currentZoom = -1f
override fun onCameraChange(pos: CameraPosition) {
if (pos.zoom != currentZoom) {
currentZoom = pos.zoom
// do you action here
Toast.makeText(this@,"Zoom$currentZoom",Toast.LENGTH_LONG).show()
}
}
})
Thanks