Upravit

Sdílet prostřednictvím


UIGestureRecognizerDelegate_Extensions Class

Definition

Extension methods to the IUIGestureRecognizerDelegate interface to support all the methods from the UIGestureRecognizerDelegate protocol.

public static class UIGestureRecognizerDelegate_Extensions
type UIGestureRecognizerDelegate_Extensions = class
Inheritance
UIGestureRecognizerDelegate_Extensions

Remarks

The extension methods for IUIGestureRecognizerDelegate allow developers to treat instances of the interface as having all the optional methods of the original UIGestureRecognizerDelegate protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.

Methods

ShouldBegin(IUIGestureRecognizerDelegate, UIGestureRecognizer)

Whether the gesture recognition should begin.

ShouldBeRequiredToFailBy(IUIGestureRecognizerDelegate, UIGestureRecognizer, UIGestureRecognizer)

Whether there is a dynamic failure requirement between the specified gesture recognizers.

ShouldReceivePress(IUIGestureRecognizerDelegate, UIGestureRecognizer, UIPress)
ShouldReceiveTouch(IUIGestureRecognizerDelegate, UIGestureRecognizer, UITouch)

Whether the recognizer should receive the specified touch.

ShouldRecognizeSimultaneously(IUIGestureRecognizerDelegate, UIGestureRecognizer, UIGestureRecognizer)

Whether the two gesture recognizers should be allowed to recognize gestures simultaneously.

ShouldRequireFailureOf(IUIGestureRecognizerDelegate, UIGestureRecognizer, UIGestureRecognizer)

Whether the specified gestureRecognizer should be required to fail by the otherGestureRecognizer.

Applies to