public static TransformGestureDetector newInstance() {
    return new TransformGestureDetector(MultiPointerGestureDetector.newInstance());
  }
Factory method that creates a new instance of TransformGestureDetector
samples/gestures/src/main/java/com/facebook/samples/gestures/TransformGestureDetector.java