Class PinchToZoomGestureDetector

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean onTouchEvent​(android.view.MotionEvent event)
      Determines if the specified motion event is part of a pinch-to-zoom gesture, in which case the associated MapView will be zoomed in or out depending on the current scale of the pinch gesture.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PinchToZoomGestureDetector

        public PinchToZoomGestureDetector​(MapView mapView)
        Creates a PinchToZoomGestureDetector with a MapView.
        Parameters:
        mapView - the MapView on which to apply pinch-to-zoom gestures
        Throws:
        java.lang.IllegalArgumentException - if mapView is null
        Since:
        100.9.0
    • Method Detail

      • onTouchEvent

        public boolean onTouchEvent​(android.view.MotionEvent event)
        Determines if the specified motion event is part of a pinch-to-zoom gesture, in which case the associated MapView will be zoomed in or out depending on the current scale of the pinch gesture. This method needs to be called when a touch event is dispatched to the associated MapView, typically this will be done by a View.OnTouchListener which receives the touch events.
        Parameters:
        event - the MotionEvent object containing information about the gesture
        Returns:
        true if this gesture detector has consumed the event; false otherwise
        Since:
        100.9.0