Package apple.uikit.protocol
Interface UIGestureRecognizerDelegate
-
- All Known Implementing Classes:
PDFView,UITableViewCell
public interface UIGestureRecognizerDelegate
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default booleangestureRecognizerShouldBegin(UIGestureRecognizer gestureRecognizer)called when a gesture recognizer attempts to transition out of UIGestureRecognizerStatePossible. returning NO causes it to transition to UIGestureRecognizerStateFaileddefault booleangestureRecognizerShouldBeRequiredToFailByGestureRecognizer(UIGestureRecognizer gestureRecognizer, UIGestureRecognizer otherGestureRecognizer)default booleangestureRecognizerShouldReceiveEvent(UIGestureRecognizer gestureRecognizer, UIEvent event)called once before either -gestureRecognizer:shouldReceiveTouch: or -gestureRecognizer:shouldReceivePress: return NO to prevent the gesture recognizer from seeing this eventdefault booleangestureRecognizerShouldReceivePress(UIGestureRecognizer gestureRecognizer, UIPress press)called before pressesBegan:withEvent: is called on the gesture recognizer for a new press. return NO to prevent the gesture recognizer from seeing this pressdefault booleangestureRecognizerShouldReceiveTouch(UIGestureRecognizer gestureRecognizer, UITouch touch)called before touchesBegan:withEvent: is called on the gesture recognizer for a new touch. return NO to prevent the gesture recognizer from seeing this touchdefault booleangestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer(UIGestureRecognizer gestureRecognizer, UIGestureRecognizer otherGestureRecognizer)called when the recognition of one of gestureRecognizer or otherGestureRecognizer would be blocked by the other return YES to allow both to recognize simultaneously. the default implementation returns NO (by default no two gestures can be recognized simultaneously) note: returning YES is guaranteed to allow simultaneous recognition. returning NO is not guaranteed to prevent simultaneous recognition, as the other gesture's delegate may return YESdefault booleangestureRecognizerShouldRequireFailureOfGestureRecognizer(UIGestureRecognizer gestureRecognizer, UIGestureRecognizer otherGestureRecognizer)called once per attempt to recognize, so failure requirements can be determined lazily and may be set up between recognizers across view hierarchies return YES to set up a dynamic failure requirement between gestureRecognizer and otherGestureRecognizer note: returning YES is guaranteed to set up the failure requirement. returning NO does not guarantee that there will not be a failure requirement as the other gesture's counterpart delegate or subclass methods may return YES
-
-
-
Method Detail
-
gestureRecognizerShouldBeRequiredToFailByGestureRecognizer
default boolean gestureRecognizerShouldBeRequiredToFailByGestureRecognizer(UIGestureRecognizer gestureRecognizer, UIGestureRecognizer otherGestureRecognizer)
-
gestureRecognizerShouldReceivePress
default boolean gestureRecognizerShouldReceivePress(UIGestureRecognizer gestureRecognizer, UIPress press)
called before pressesBegan:withEvent: is called on the gesture recognizer for a new press. return NO to prevent the gesture recognizer from seeing this press
-
gestureRecognizerShouldReceiveTouch
default boolean gestureRecognizerShouldReceiveTouch(UIGestureRecognizer gestureRecognizer, UITouch touch)
called before touchesBegan:withEvent: is called on the gesture recognizer for a new touch. return NO to prevent the gesture recognizer from seeing this touch
-
gestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer
default boolean gestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer(UIGestureRecognizer gestureRecognizer, UIGestureRecognizer otherGestureRecognizer)
called when the recognition of one of gestureRecognizer or otherGestureRecognizer would be blocked by the other return YES to allow both to recognize simultaneously. the default implementation returns NO (by default no two gestures can be recognized simultaneously) note: returning YES is guaranteed to allow simultaneous recognition. returning NO is not guaranteed to prevent simultaneous recognition, as the other gesture's delegate may return YES
-
gestureRecognizerShouldRequireFailureOfGestureRecognizer
default boolean gestureRecognizerShouldRequireFailureOfGestureRecognizer(UIGestureRecognizer gestureRecognizer, UIGestureRecognizer otherGestureRecognizer)
called once per attempt to recognize, so failure requirements can be determined lazily and may be set up between recognizers across view hierarchies return YES to set up a dynamic failure requirement between gestureRecognizer and otherGestureRecognizer note: returning YES is guaranteed to set up the failure requirement. returning NO does not guarantee that there will not be a failure requirement as the other gesture's counterpart delegate or subclass methods may return YES
-
gestureRecognizerShouldBegin
default boolean gestureRecognizerShouldBegin(UIGestureRecognizer gestureRecognizer)
called when a gesture recognizer attempts to transition out of UIGestureRecognizerStatePossible. returning NO causes it to transition to UIGestureRecognizerStateFailed
-
gestureRecognizerShouldReceiveEvent
default boolean gestureRecognizerShouldReceiveEvent(UIGestureRecognizer gestureRecognizer, UIEvent event)
called once before either -gestureRecognizer:shouldReceiveTouch: or -gestureRecognizer:shouldReceivePress: return NO to prevent the gesture recognizer from seeing this event
-
-