PinchGestureRecognizer

  • PinchGestureRecognizer detects two-finger pinch motions on a touchscreen for use in AR interactions.

  • It provides a listener, OnGestureStartedListener, to react when a pinch gesture begins.

  • The tryCreateGestures method is used internally to handle touch events and identify potential pinch gestures.

  • This class inherits functionalities from BaseGestureRecognizer for managing gestures.

  • You can use this class to implement interactive scaling or zooming functionalities in your AR applications by responding to the pinch events.

public class PinchGestureRecognizer

Gesture Recognizer for when the user performs a two-finger pinch motion on the touch screen.

Nested Classes

interface PinchGestureRecognizer.OnGestureStartedListener Interface definition for a callbacks to be invoked when a PinchGesture starts. 

Inherited Fields

Public Constructors

Protected Methods

void
tryCreateGestures(HitTestResult hitTestResult, MotionEvent motionEvent)

Inherited Methods

Public Constructors

public PinchGestureRecognizer (GesturePointersUtility gesturePointersUtility)

Parameters
gesturePointersUtility

Protected Methods

protected void tryCreateGestures (HitTestResult hitTestResult, MotionEvent motionEvent)

Parameters
hitTestResult
motionEvent