public class LongPressOrTapGestureRecognizer extends TapGestureRecognizer
Modifier and Type | Class and Description |
---|---|
static class |
LongPressOrTapGestureRecognizer.CellLongPressOrTapGestureRecognizer<T> |
static class |
LongPressOrTapGestureRecognizer.LongPressEvent |
TapGestureRecognizer.CellTapGestureRecognizer<T>, TapGestureRecognizer.TapCancelEvent, TapGestureRecognizer.TapGestureEvent, TapGestureRecognizer.TapGestureStartEvent
AbstractGestureRecognizer.ExtraTouchBehavior
pointerEventsSupport
Constructor and Description |
---|
LongPressOrTapGestureRecognizer() |
LongPressOrTapGestureRecognizer(int minPressTimeMs) |
LongPressOrTapGestureRecognizer(int minPressTimeMs,
int distance) |
Modifier and Type | Method and Description |
---|---|
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 |
onLongPress(TouchData touchData) |
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) |
handlePreventDefault, onMove
cancel, fireEvent, getTouches, handle, handleCancel, handleEnd, handleMove, handleStart, setCaptured, setDelegate, setInterest, start
public LongPressOrTapGestureRecognizer()
public LongPressOrTapGestureRecognizer(int minPressTimeMs)
public LongPressOrTapGestureRecognizer(int minPressTimeMs, int distance)
protected boolean onStart(TouchData startedTouch)
AbstractGestureRecognizer
onStart
in class TapGestureRecognizer
startedTouch
- the touch that has begunprotected void onEnd(List<TouchData> touches)
AbstractGestureRecognizer
onEnd
in class TapGestureRecognizer
touches
- data for the now-ended touches (as opposed to #getTouches which no longer has those entries)protected void onTap(TouchData touchData)
onTap
in class TapGestureRecognizer
protected void onCancel(List<TouchData> touches)
AbstractGestureRecognizer
onCancel
in class TapGestureRecognizer
touches
- data for the now-canceled touches (as opposed to #getTouches which no longer has those entries)protected void onLongPress(TouchData touchData)
Copyright © 2018. All rights reserved.