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

PinchGesture

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

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

Nested Classes

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

Inherited Fields

Public Constructors

PinchGesture(GesturePointersUtility gesturePointersUtility, MotionEvent motionEvent, int pointerId2)

Public Methods

void
cancel()
Cancels the gesture in progress.
float
float
float
getGap()
float

Protected Methods

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

Inherited Methods

Public Constructors

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

Parameters
gesturePointersUtility
motionEvent
pointerId2

Public Methods

public void cancel ()

Cancels the gesture in progress.

public float gapDeltaInches ()

public float gapInches ()

public float getGap ()

public float getGapDelta ()

Protected Methods

protected boolean canStart (HitTestResult hitTestResult, MotionEvent motionEvent)

Parameters
hitTestResult
motionEvent

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