Class CropOverlayGestureDetector


  • public class CropOverlayGestureDetector
    extends java.lang.Object
    Detects various gestures on the crop overlay, firing a CropOverlayGestureCallback for the corresponding gestures.
    • Constructor Summary

      Constructors 
      Constructor Description
      CropOverlayGestureDetector​(android.graphics.Rect overlay, CropOverlayGestureCallback listener)
      Creates a CropOverlayGestureDetector with the supplied crop overlay rectangle, and a listener to respond for the detected gestures.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onTouchEvent​(android.view.MotionEvent event, boolean isAspectRatioLocked)
      Handles touch events on the crop overlay.
      • Methods inherited from class java.lang.Object

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

      • CropOverlayGestureDetector

        public CropOverlayGestureDetector​(android.graphics.Rect overlay,
                                          CropOverlayGestureCallback listener)
        Creates a CropOverlayGestureDetector with the supplied crop overlay rectangle, and a listener to respond for the detected gestures.
        Parameters:
        overlay - Crop overlay rectangle.
        listener - Notified with the callbacks for the corresponding gestures.
    • Method Detail

      • onTouchEvent

        public void onTouchEvent​(android.view.MotionEvent event,
                                 boolean isAspectRatioLocked)
        Handles touch events on the crop overlay.
        Parameters:
        event - Motion event which triggered the event.
        isAspectRatioLocked - Whether the crop overlay's aspect ratio is locked or not.