DragGestureRecognizer

  • DragGestureRecognizer detects drag motions on the touch screen for user interaction in AR scenes.

  • It provides a listener, OnGestureStartedListener, to respond when a drag gesture begins.

  • The tryCreateGestures method is responsible for initiating drag gestures based on touch input and hit test results.

  • It inherits functionality from BaseGestureRecognizer for managing gestures and touch events.

public class DragGestureRecognizer

Gesture Recognizer for when the user performs a drag motion on the touch screen.

Nested Classes

interface DragGestureRecognizer.OnGestureStartedListener Interface definition for a callbacks to be invoked when a DragGesture starts. 

Inherited Fields

Public Constructors

Protected Methods

void
tryCreateGestures(HitTestResult hitTestResult, MotionEvent motionEvent)

Inherited Methods

Public Constructors

public DragGestureRecognizer (GesturePointersUtility gesturePointersUtility)

Parameters
gesturePointersUtility

Protected Methods

protected void tryCreateGestures (HitTestResult hitTestResult, MotionEvent motionEvent)

Parameters
hitTestResult
motionEvent