Interface Scene.OnPeekTouchListener

  • Enclosing class:
    Scene

    public static interface Scene.OnPeekTouchListener
    Interface definition for a callback to be invoked when a touch event is dispatched to a scene. The callback will be invoked before the Scene.OnTouchListener is invoked. This is invoked even if the gesture was consumed, making it possible to observe all motion events dispatched to the 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 the Scene.OnTouchListener is 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 case HitTestResult.getNode() will be null.
        Parameters:
        hitTestResult - represents the node that was touched
        motionEvent - the motion event
        See Also:
        Scene.setOnTouchListener(OnTouchListener)