public class TapGestureRecognizer extends AbstractGestureRecognizer
Modifier and Type | Class and Description |
---|---|
static class |
TapGestureRecognizer.CellTapGestureRecognizer<T> |
static class |
TapGestureRecognizer.TapCancelEvent |
static class |
TapGestureRecognizer.TapGestureEvent |
static class |
TapGestureRecognizer.TapGestureStartEvent |
AbstractGestureRecognizer.ExtraTouchBehavior
pointerEventsSupport
Constructor and Description |
---|
TapGestureRecognizer() |
TapGestureRecognizer(int distance) |
Modifier and Type | Method and Description |
---|---|
protected void |
handlePreventDefault(NativeEvent event)
Intended to allow subclasses to determine if preventDefault should be called
Default behavior is to NOT preventDefault
|
protected void |
onCancel(List<TouchData> touches)
Indicates that one or more touches have been canceled by the browser or by the gesture itself being canceled
(see #cancel).
|
protected void |
onEnd(List<TouchData> touches)
Indicates that one or more touches have ended.
|
protected void |
onMove(List<TouchData> touches)
Indicates that on or more touches are moving
|
protected boolean |
onStart(TouchData startedTouch)
Indicates that a touch has started, giving the gesture the chance to exclusively handle this touch as it moves.
|
protected void |
onTap(TouchData touchData) |
cancel, fireEvent, getTouches, handle, handleCancel, handleEnd, handleMove, handleStart, setCaptured, setDelegate, setInterest, start
public TapGestureRecognizer()
public TapGestureRecognizer(int distance)
protected boolean onStart(TouchData startedTouch)
AbstractGestureRecognizer
onStart
in class AbstractGestureRecognizer
startedTouch
- the touch that has begunprotected void onMove(List<TouchData> touches)
AbstractGestureRecognizer
onMove
in class AbstractGestureRecognizer
protected void onTap(TouchData touchData)
protected void onEnd(List<TouchData> touches)
AbstractGestureRecognizer
onEnd
in class AbstractGestureRecognizer
touches
- data for the now-ended touches (as opposed to #getTouches which no longer has those entries)protected void onCancel(List<TouchData> touches)
AbstractGestureRecognizer
onCancel
in class AbstractGestureRecognizer
touches
- data for the now-canceled touches (as opposed to #getTouches which no longer has those entries)protected void handlePreventDefault(NativeEvent event)
AbstractGestureRecognizer
handlePreventDefault
in class AbstractGestureRecognizer
Copyright © 2018. All rights reserved.