title: How to detect pinch to zoom in Google Maps v2
body: <p>I have project where I have used Google Maps v2 and, in there there are some auto zoom functions which are working quite well.</p>
  <p>But now the users complaints and wants the auto zoom functions to turn off when they touch the screen in a zoom pinch (either outwards (zooming in) or inwards (zooming out)). Is there a good way to detect that particular zoom event without disrupting the manual zooming, so I can turn off my autozoom.</p>
  <p>Using google maps v2 in android kotlin.</p>
  <p>I.E.</p>
  <pre><code>...
  
  override fun onViewCreated(view:View,savedInstanceState:Bundle?){
    ...
    val mapFragment = childFragmentManager.findFragmentById(R.id.map) as SupportMapFragment?
  
    ...
  
    mapFragment?.getMapAsync{_googleMap-&gt;
      _googleMap?.let{safeGoogleMap-&gt;
        googleMap = safeGoogleMap
      }?:let{
        Log.e(TAG,&quot;Map couldn`t be created&quot;)
        Message.error(&quot;Map couldn`t be created&quot;)
        return@getMapAsync
      }
  
      //How to detect two finger zoom in or out pinch here
  
  
  
      //   
  
    }
  
  }
  
  </code></pre>