Class TouchGestureHandler

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit handleTouchEvent(MotionEvent event) Handles touch events and delegates the actions to the listener.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • handleTouchEvent

         final Unit handleTouchEvent(MotionEvent event)

        Handles touch events and delegates the actions to the listener. The method processes the following actions:

        • ACTION_DOWN: Indicates the start of a touch event. Calls onTouchBegin on the listener.

        • ACTION_UP or ACTION_CANCEL: Indicates the end or cancellation of a touch event. Calls onTouchEnd on the listener.