public class UITapGestureRecognizer extends UIGestureRecognizer
Constructor and Description |
---|
UITapGestureRecognizer(NSSelector<UIGestureRecognizer> target)
Constructs new UITapGestureRecognizer and attaches it to the specified
UIGestureRecognizer.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canBePreventedByGestureRecognizer(UIGestureRecognizer newMaster)
Override this method so that the specified UIGestureRecognizer prevents
this UIGestureRecognizer from recognizing a gesture.
|
boolean |
canPreventGestureRecognizer(UIGestureRecognizer newSlave)
Override this method so that this UIGestureRecognizer prevents the
specified UIGestureRecognizer from recognizing a gesture.
|
int |
numberOfTapsRequired()
Returns the number of taps required so that the gesture is recognized.
|
int |
numberOfTouchesRequired()
Returns the number of touches required so that the gesture is recognized.
|
void |
setNumberOfTapsRequired(int numberOfTapsRequired)
Sets the number of taps required so that the gesture is recognized.
|
void |
setNumberOfTouchesRequired(int numberOfTouchesRequired)
Sets the number of touches required so that the gesture is recognized.
|
void |
touchesBegan(Set<UITouch> touches,
UIEvent event)
Informs this UIGestureRecognizer when one or more fingers touched down in
the associated UIView.
|
void |
touchesCancelled(Set<UITouch> touches,
UIEvent event)
Informs this UIGestureRecognizer that a touch event was canceled due to
system event.
|
void |
touchesEnded(Set<UITouch> touches,
UIEvent event)
Informs this UIGestureRecognizer when one or more fingers were lifted
from the associated view.
|
void |
touchesMoved(Set<UITouch> touches,
UIEvent event)
Informs this UIGestureRecognizer when one or more fingers were moved
within the associated view.
|
addTarget, cancelsTouchesInView, delaysTouchesBegan, delaysTouchesEnded, delegate, isEnabled, locationInView, locationOfTouch, numberOfTouches, removeTarget, requireGestureRecognizerToFail, reset, setCancelsTouchesInView, setDelaysTouchesBegan, setDelaysTouchesEnded, setDelegate, setEnabled, state, toString, view
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public UITapGestureRecognizer(NSSelector<UIGestureRecognizer> target)
target
- The UIGestureRecognizer to which the new object is attached
to.public int numberOfTapsRequired()
public void setNumberOfTapsRequired(int numberOfTapsRequired)
numberOfTapsRequired
- The number of taps required.public int numberOfTouchesRequired()
public void setNumberOfTouchesRequired(int numberOfTouchesRequired)
numberOfTouchesRequired
- The number of touches required.public void touchesBegan(Set<UITouch> touches, UIEvent event)
UIGestureRecognizer
touchesBegan
in class UIGestureRecognizer
touches
- The set of touches until the UITouchPhaseCancelled phase.event
- The event to which the touches belong.public void touchesMoved(Set<UITouch> touches, UIEvent event)
UIGestureRecognizer
touchesMoved
in class UIGestureRecognizer
touches
- The set of touches until the UITouchPhaseCancelled phase.event
- The event to which the touches belong.public void touchesEnded(Set<UITouch> touches, UIEvent event)
UIGestureRecognizer
touchesEnded
in class UIGestureRecognizer
touches
- The set of touches until the UITouchPhaseCancelled phase.event
- The event to which the touches belong.public void touchesCancelled(Set<UITouch> touches, UIEvent event)
UIGestureRecognizer
touchesCancelled
in class UIGestureRecognizer
touches
- The set of touches until the UITouchPhaseCancelled phase.event
- The event to which the touches belong.public boolean canBePreventedByGestureRecognizer(UIGestureRecognizer newMaster)
UIGestureRecognizer
canBePreventedByGestureRecognizer
in class UIGestureRecognizer
newMaster
- The UIGestureRecognizer that prevents this gesture
recognizer from recognizing a gesture.public boolean canPreventGestureRecognizer(UIGestureRecognizer newSlave)
UIGestureRecognizer
canPreventGestureRecognizer
in class UIGestureRecognizer
newSlave
- The UIGestureRecognizer that is prevented from
recognizing a gesture.Copyright © 2020. All rights reserved.