Package tripleplay.gesture
Interface Gesture<T extends Gesture<T>>
- All Known Implementing Classes:
GestureBase
,Swipe
,Tap
public interface Gesture<T extends Gesture<T>>
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
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
evaluate
(GestureNode node) Perform a potential state transition in this Gesture based on the most recent touch information.boolean
greedy()
Returns whether this gesture will be greedy.greedy
(boolean value) Sets whether this gesture should be greedy or not.void
start()
Called at the start of a new user interaction, forcibly puts this gesture into the PASSIVE state.react.SignalView<Void>
started()
Dispatched if this gesture goes GREEDY.state()
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
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
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.
-