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(@NotNull UIGestureRecognizer gestureRecognizer)called when a gesture recognizer attempts to transition out of UIGestureRecognizerStatePossible.default booleangestureRecognizerShouldBeRequiredToFailByGestureRecognizer(@NotNull UIGestureRecognizer gestureRecognizer, @NotNull UIGestureRecognizer otherGestureRecognizer)API-Since: 7.0default booleangestureRecognizerShouldReceiveEvent(@NotNull UIGestureRecognizer gestureRecognizer, @NotNull UIEvent event)called once before either -gestureRecognizer:shouldReceiveTouch: or -gestureRecognizer:shouldReceivePress: return NO to prevent the gesture recognizer from seeing this event API-Since: 13.4default booleangestureRecognizerShouldReceivePress(@NotNull UIGestureRecognizer gestureRecognizer, @NotNull UIPress press)called before pressesBegan:withEvent: is called on the gesture recognizer for a new press.default booleangestureRecognizerShouldReceiveTouch(@NotNull UIGestureRecognizer gestureRecognizer, @NotNull UITouch touch)called before touchesBegan:withEvent: is called on the gesture recognizer for a new touch.default booleangestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer(@NotNull UIGestureRecognizer gestureRecognizer, @NotNull 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.default booleangestureRecognizerShouldRequireFailureOfGestureRecognizer(@NotNull UIGestureRecognizer gestureRecognizer, @NotNull 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.
-
-
-
Method Detail
-
gestureRecognizerShouldBeRequiredToFailByGestureRecognizer
default boolean gestureRecognizerShouldBeRequiredToFailByGestureRecognizer(@NotNull @NotNull UIGestureRecognizer gestureRecognizer, @NotNull @NotNull UIGestureRecognizer otherGestureRecognizer)API-Since: 7.0
-
gestureRecognizerShouldReceivePress
default boolean gestureRecognizerShouldReceivePress(@NotNull @NotNull UIGestureRecognizer gestureRecognizer, @NotNull @NotNull 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(@NotNull @NotNull UIGestureRecognizer gestureRecognizer, @NotNull @NotNull 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(@NotNull @NotNull UIGestureRecognizer gestureRecognizer, @NotNull @NotNull 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(@NotNull @NotNull UIGestureRecognizer gestureRecognizer, @NotNull @NotNull 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 API-Since: 7.0
-
gestureRecognizerShouldBegin
default boolean gestureRecognizerShouldBegin(@NotNull @NotNull 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(@NotNull @NotNull UIGestureRecognizer gestureRecognizer, @NotNull @NotNull UIEvent event)called once before either -gestureRecognizer:shouldReceiveTouch: or -gestureRecognizer:shouldReceivePress: return NO to prevent the gesture recognizer from seeing this event API-Since: 13.4
-
-