Interface definition for a callback to be invoked when a touch event is dispatched to a scene. The callback will be invoked after the touch event is dispatched to the nodes in the scene if no node consumed the event.
Public Methods
abstract boolean |
onSceneTouch(HitTestResult hitTestResult, MotionEvent motionEvent)
Called when a touch event is dispatched to a scene.
|
Public Methods
public abstract boolean onSceneTouch (HitTestResult hitTestResult, MotionEvent motionEvent)
Called when a touch event is dispatched to a scene. The callback will be invoked after the
touch event is dispatched to the nodes in the scene if no node consumed the event. This is
called even if the touch is not over a node, in which case getNode()
will be null.
Parameters
hitTestResult | represents the node that was touched |
---|---|
motionEvent | the motion event |
Returns
- true if the listener has consumed the event