public interface UIGestureRecognizerDelegate
Modifier and Type | Method and Description |
---|---|
default boolean |
shouldBegin(UIGestureRecognizer recognizer)
Returns a Boolean (default true) that indicates whether the beginning of
touch interpretation by the gesture recognizer is permitted.
|
default boolean |
shouldReceiveTouch(UIGestureRecognizer recognizer,
UITouch touch)
Returns a Boolean (default true) that indicates whether the gesture
recognizer is permitted to receive an object that represents a touch.
|
default boolean |
shouldRecognizeSimultaneouslyWithGestureRecognizer(UIGestureRecognizer recognizer,
UIGestureRecognizer otherGestureRecognizer)
Returns a Boolean (default true) that indicates whether the concurrent
recognition of two gestures is permitted.
|
default boolean shouldBegin(UIGestureRecognizer recognizer)
recognizer
- The gesture recognizer that corresponds to this
delegate.default boolean shouldRecognizeSimultaneouslyWithGestureRecognizer(UIGestureRecognizer recognizer, UIGestureRecognizer otherGestureRecognizer)
recognizer
- The gesture recognizer that corresponds to this
delegate.otherGestureRecognizer
- The other gesture recognizer.default boolean shouldReceiveTouch(UIGestureRecognizer recognizer, UITouch touch)
recognizer
- The gesture recognizer that asks for permission.touch
- The touch object that is to be received.Copyright © 2020. All rights reserved.