UIKit.UIGestureRecognizer Members

The members of UIKit.UIGestureRecognizer are listed below.

See Also: Inherited members from Foundation.NSObject

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
Initalizes a gesture recognizer.
Initializes a designated gesture-recognizer.
Initalizes a gesture recognizer.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

CancelsTouchesInViewbool. Whether touches recognized as part of a gesture should be delivered to the underlying UIView.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
DelaysTouchesBeganbool. Whether this UIGestureRecognizer should delay sending touches to the underlying UIVew during the gesture's begin phase.
DelaysTouchesEndedbool. Whether this UIGestureRecgonizer should delay sending touches to the underlying UIView during the gesture's end phase.
DelegateIUIGestureRecognizerDelegate. An instance of the UIKit.UIGestureRecognizerDelegate model class which acts as the class delegate.
Enabledbool. Whether the UIGestureRecognizer is enabled.
[read-only]
NumberOfTouchesnint. The number of touches involved in the gesture.
ShouldBeginUIGestureProbe. Delegate invoked by the object to get a value.
ShouldBeRequiredToFailByUIGesturesProbe. Delegate invoked by the object to get a value.
ShouldReceiveTouchUITouchEventArgs. Delegate invoked by the object to get a value.
ShouldRecognizeSimultaneouslyUIGesturesProbe. Delegate invoked by the object to get a value.
ShouldRequireFailureOfUIGesturesProbe. Delegate invoked by the object to get a value.
StateUIGestureRecognizerState. The current state of this UIGestureRecognizer. Read-only.
[read-only]
ViewUIView. The UIView to which this UIGestureRecognizer is attached. Read-only.
WeakDelegateFoundation.NSObject. An object that can respond to the delegate protocol for this type

Public Methods

AddTarget(Action) : UIGestureRecognizer.Token
Registers a new callback for when the gesture has been recognized.
AddTarget(Action<Foundation.NSObject>) : UIGestureRecognizer.Token
Registers a new callback for when the gesture has been recognized.
AddTarget(Foundation.NSObject, ObjCRuntime.Selector)
Low-level version of AddTarget.
CanBePreventedByGestureRecognizer(UIGestureRecognizer) : bool
When overridden, allows the specified UIGestureRecognizer to prevent this UIGestureRecognizer from recognizing a gesture.
CanPreventGestureRecognizer(UIGestureRecognizer) : bool
When overridden, indicates that this UIGestureRecognizer can prevent the specified UIGestureRecognizer from recognizing a gesture.
IgnoreTouch(UITouch, UIEvent)
Ignores a specific touch of the given event.
LocationInView(UIView) : CoreGraphics.CGPoint
The PointF in the given UIView of the gesture represented by this UIGestureRecognizer.
LocationOfTouch(UIView, nint) : CoreGraphics.CGPoint
The location, in the local coordinate system of the UIView, of one of the gesture's touches.
RemoveTarget(UIGestureRecognizer.Token)
Removes the callback method for the specified gesture being recognized, based on the token that was returned by AddTarget.
RemoveTarget(Foundation.NSObject, ObjCRuntime.Selector)
Low-level counterpart to the low-level AddTarget method.
RequireGestureRecognizerToFail(UIGestureRecognizer)
Causes this UIGestureRecognizer to only work if the specified UIGestureRecognizer fails (e.g., a single-tap gesture might require that a double-tap gesture fail).
Reset()
When overridden, allows the application developer to reset internal state when a gesture is recognized.
ShouldBeRequiredToFailByGestureRecognizer(UIGestureRecognizer) : bool
Specifically overridden to indicate that a receiver requires the specified gesture recognizer to fail.
ShouldRequireFailureOfGestureRecognizer(UIGestureRecognizer) : bool
Documentation for this section has not yet been entered.
TouchesBegan(Foundation.NSSet, UIEvent)
Indicates that one or more fingers have touched down in the associated UIView.
TouchesCancelled(Foundation.NSSet, UIEvent)
Indicates that a system event (e.g., a low-memory warning) has cancelled the touch event.
TouchesEnded(Foundation.NSSet, UIEvent)
Indicates that one or more fingers have lifted in the associated UIView.
TouchesMoved(Foundation.NSSet, UIEvent)
Indicates that one or more fingers have moved in the associated UIView.

Protected Methods

override
Dispose(bool)
Releases the resources used by the UIGestureRecognizer object.