Interface Gesture<T extends Gesture<T>>

All Known Implementing Classes:
GestureBase, Swipe, Tap

public interface Gesture<T extends Gesture<T>>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
     
    static enum 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Forcibly put this gesture into the UNQUALIFIED state, as a result of another gesture transitioning to GREEDY.
    react.SignalView<Boolean>
    Dispatched when this gesture is completed.
    void
    Perform a potential state transition in this Gesture based on the most recent touch information.
    boolean
    Returns whether this gesture will be greedy.
    greedy(boolean value)
    Sets whether this gesture should be greedy or not.
    void
    Called at the start of a new user interaction, forcibly puts this gesture into the PASSIVE state.
    react.SignalView<Void>
    Dispatched if this gesture goes GREEDY.
    Return the current gesture state.
  • Method Details

    • start

      void start()
      Called at the start of a new user interaction, forcibly puts this gesture into the PASSIVE state.
    • cancel

      void cancel()
      Forcibly put this gesture into the UNQUALIFIED state, as a result of another gesture transitioning to GREEDY.
    • evaluate

      void evaluate(GestureNode node)
      Perform a potential state transition in this Gesture based on the most recent touch information.
    • state

      Gesture.State state()
      Return the current gesture state.
    • greedy

      T greedy(boolean value)
      Sets whether this gesture should be greedy or not.
    • greedy

      boolean greedy()
      Returns whether this gesture will be greedy.
    • started

      react.SignalView<Void> started()
      Dispatched if this gesture goes GREEDY.
    • completed

      react.SignalView<Boolean> completed()
      Dispatched when this gesture is completed. The value is only false if the gesture was GREEDY and it was canceled instead of completed.