
public abstract class AbstractTwoTouchGestureRecognizer extends AbstractGestureRecognizer
AbstractGestureRecognizer.ExtraTouchBehavior| Modifier and Type | Field and Description |
|---|---|
protected TouchData |
first |
protected TouchData |
second |
captured, eventDelegate, extraTouchBehavior, interested, pointerEventsSupport, touchCount| Constructor and Description |
|---|
AbstractTwoTouchGestureRecognizer() |
AbstractTwoTouchGestureRecognizer(AbstractGestureRecognizer.ExtraTouchBehavior extraTouchBehavior) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
bothTouchStart(TouchData first,
TouchData second) |
protected abstract void |
bothTouchUpdate(TouchData first,
TouchData second) |
protected boolean |
endOneOrBothTouches(List<TouchData> touches) |
protected abstract void |
fireCancelEvent(List<TouchData> touches) |
protected abstract void |
fireEndEvent(List<TouchData> touches) |
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.
|
cancel, fireEvent, getTouches, handle, handleCancel, handleEnd, handleMove, handlePreventDefault, handleStart, setCaptured, setDelegate, setInterest, startpublic AbstractTwoTouchGestureRecognizer()
public AbstractTwoTouchGestureRecognizer(AbstractGestureRecognizer.ExtraTouchBehavior extraTouchBehavior)
protected boolean onStart(TouchData startedTouch)
AbstractGestureRecognizeronStart in class AbstractGestureRecognizerstartedTouch - the touch that has begunprotected void onMove(List<TouchData> touches)
AbstractGestureRecognizeronMove in class AbstractGestureRecognizerprotected void onEnd(List<TouchData> touches)
AbstractGestureRecognizeronEnd in class AbstractGestureRecognizertouches - data for the now-ended touches (as opposed to #getTouches which no longer has those entries)protected void onCancel(List<TouchData> touches)
AbstractGestureRecognizeronCancel in class AbstractGestureRecognizertouches - data for the now-canceled touches (as opposed to #getTouches which no longer has those entries)Copyright © 2020. All rights reserved.