• 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.

TwistGesture

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

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

Nested Classes

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

Inherited Fields

Public Constructors

TwistGesture(GesturePointersUtility gesturePointersUtility, MotionEvent motionEvent, int pointerId2)

Public Methods

float

Protected Methods

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

Inherited Methods

Public Constructors

public TwistGesture (GesturePointersUtility gesturePointersUtility, MotionEvent motionEvent, int pointerId2)

Parameters
gesturePointersUtility
motionEvent
pointerId2

Public Methods

public float getDeltaRotationDegrees ()

Protected Methods

protected boolean canStart (HitTestResult hitTestResult, MotionEvent motionEvent)

Parameters
hitTestResult
motionEvent

protected TwistGesture 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