Page Summary
-
PinchGestureRecognizerdetects 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
tryCreateGesturesmethod is used internally to handle touch events and identify potential pinch gestures. -
This class inherits functionalities from
BaseGestureRecognizerfor managing gestures. -
You can use this class to implement interactive scaling or zooming functionalities in your AR applications by responding to the pinch events.
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
|
PinchGestureRecognizer(GesturePointersUtility gesturePointersUtility)
|
Protected Methods
| void |
Inherited Methods
Public Constructors
public PinchGestureRecognizer (GesturePointersUtility gesturePointersUtility)
Parameters
| gesturePointersUtility |
|---|
Protected Methods
protected void tryCreateGestures (HitTestResult hitTestResult, MotionEvent motionEvent)
Parameters
| hitTestResult | |
|---|---|
| motionEvent |