Interface GestureSwipe.OnSwipe

Enclosing class:
GestureSwipe
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface GestureSwipe.OnSwipe
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onSwipe(double velocity_x, double velocity_y)
    Emitted when the recognized gesture is finished.
  • Method Details

    • onSwipe

      void onSwipe(double velocity_x, double velocity_y)
      Emitted when the recognized gesture is finished.

      Velocity and direction are a product of previously recorded events.
      Parameters:
      velocity_x - velocity in the X axis, in pixels/sec
      velocity_y - velocity in the Y axis, in pixels/sec