Interface TouchEvent

All Superinterfaces:
Event, Event, UiEventModifier

public interface TouchEvent extends UiEventModifier
A touch event that provides access to the touch event data.

This event occurs when a user performs an action with a touch device, for example, touches the screen, moves a finger on the screen, or performs a multi-touch gesture.

Since:
8.0.0
  • Method Details

    • touches

      List<TouchPoint> touches()
      All touch points that are currently present on the screen.

      The returned points correspond to the locations of touch contacts on the screen, e.g., to several fingers touching at once.

    • changedTouches

      List<TouchPoint> changedTouches()
      The touch points that contributed to the event.

      Meaning of these points varies depending on the event type.

    • targetTouches

      List<TouchPoint> targetTouches()
      The touch points that have started on the target element of this event.

      The result consists of elements from the touches() list, with their ordering not preserved.