Interface SwipeTracker.OnPrepare

Enclosing class:
SwipeTracker
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 SwipeTracker.OnPrepare
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onPrepare(int direction)
    This signal is emitted when a possible swipe is detected.
  • Method Details

    • onPrepare

      void onPrepare(int direction)
      This signal is emitted when a possible swipe is detected.

      The @direction value can be used to restrict the swipe to a certain
      direction.
      Parameters:
      direction - the direction of the swipe