Package pro.streem.ar.sceneform
Interface Scene.OnPeekTouchListener
-
- Enclosing class:
- Scene
public static interface Scene.OnPeekTouchListenerInterface definition for a callback to be invoked when a touch event is dispatched to a scene. The callback will be invoked before theScene.OnTouchListeneris invoked. This is invoked even if the gesture was consumed, making it possible to observe all motion events dispatched to the scene.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonPeekTouch(HitTestResult hitTestResult, android.view.MotionEvent motionEvent)Called when a touch event is dispatched to a scene.
-
-
-
Method Detail
-
onPeekTouch
void onPeekTouch(HitTestResult hitTestResult, android.view.MotionEvent motionEvent)
Called when a touch event is dispatched to a scene. The callback will be invoked before theScene.OnTouchListeneris invoked. This is invoked even if the gesture was consumed, making it possible to observe all motion events dispatched to the scene. This is called even if the touch is not over a node, in which caseHitTestResult.getNode()will be null.- Parameters:
hitTestResult- represents the node that was touchedmotionEvent- the motion event- See Also:
Scene.setOnTouchListener(OnTouchListener)
-
-