Package pro.streem.ar.sceneform
Interface Node.OnTapListener
-
- Enclosing class:
- Node
public static interface Node.OnTapListenerInterface definition for a callback to be invoked when a node is tapped.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonTap(HitTestResult hitTestResult, android.view.MotionEvent motionEvent)Handles when a node has been tapped.
-
-
-
Method Detail
-
onTap
void onTap(HitTestResult hitTestResult, android.view.MotionEvent motionEvent)
Handles when a node has been tapped.HitTestResult.getNode()will always be this node or one of its children.- Parameters:
hitTestResult- represents the node that was tapped and information about where it was touchedmotionEvent- theMotionEvent.ACTION_UPMotionEvent that caused the tap
-
-