• Sceneform SDK for Android was open sourced and archived (github.com/google-ar/sceneform-android-sdk) with version 1.16.0.
  • This site (developers.google.com/sceneform) serves as the documentation archive for the previous version, Sceneform SDK for Android 1.15.0.
  • Do not use version 1.17.0 of the Sceneform Maven artifacts.
  • The 1.17.1 Maven artifacts can be used. Other than the version, however, the 1.17.1 artifacts are identical to the 1.15.0 artifacts.

DragGesture

Stay organized with collections Save and categorize content based on your preferences.
public class DragGesture

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

Nested Classes

interface DragGesture.OnGestureEventListener Interface definition for callbacks to be invoked by a DragGesture

Inherited Fields

Public Constructors

DragGesture(GesturePointersUtility gesturePointersUtility, HitTestResult hitTestResult, MotionEvent motionEvent)

Public Methods

Vector3
Vector3

Protected Methods

boolean
canStart(HitTestResult hitTestResult, MotionEvent motionEvent)
DragGesture
void
void
void
onStart(HitTestResult hitTestResult, MotionEvent motionEvent)
boolean
updateGesture(HitTestResult hitTestResult, MotionEvent motionEvent)

Inherited Methods

Public Constructors

public DragGesture (GesturePointersUtility gesturePointersUtility, HitTestResult hitTestResult, MotionEvent motionEvent)

Parameters
gesturePointersUtility
hitTestResult
motionEvent

Public Methods

public Vector3 getDelta ()

public Vector3 getPosition ()

Protected Methods

protected boolean canStart (HitTestResult hitTestResult, MotionEvent motionEvent)

Parameters
hitTestResult
motionEvent

protected DragGesture getSelf ()

protected void onCancel ()

protected void onFinish ()

protected void onStart (HitTestResult hitTestResult, MotionEvent motionEvent)

Parameters
hitTestResult
motionEvent

protected boolean updateGesture (HitTestResult hitTestResult, MotionEvent motionEvent)

Parameters
hitTestResult
motionEvent