code: private GestureDetectorCompat getGestureDetector() {
      if (gestureDetector == null) {
        gestureDetector = new GestureDetectorCompat(view.getContext(), gestureListener);
      }
      return gestureDetector;
    }
docs: Returns the GestureDetectorCompat instance where the view should delegate touch events.