UILongPressGestureRecognizer
UILongPressGestureRecognizer
Class
Definition
Gesture recognizer for long presses.
[Foundation.Register("UILongPressGestureRecognizer", true)]
public class UILongPressGestureRecognizer : UIKit.UIGestureRecognizer
type UILongPressGestureRecognizer = class
inherit UIGestureRecognizer
- Inheritance
-
UILongPressGestureRecognizerUILongPressGestureRecognizer
- Attributes
Remarks
The long press gesture involves one or more (see NumberOfTouchesRequired) fingers to to press for a certain amount of time (see MinimumPressDuration). The fingers may not move more than AllowableMovement.
Constructors
UILongPressGestureRecognizer() UILongPressGestureRecognizer() |
Default constructor that initializes a new instance of this class with no parameters. |
UILongPressGestureRecognizer(Action) UILongPressGestureRecognizer(Action) | |
UILongPressGestureRecognizer(Action<UILongPressGestureRecognizer>) UILongPressGestureRecognizer(Action<UILongPressGestureRecognizer>) |
Constructs a gesture recognizer and provides a method to invoke when the gesture is recognized. |
UILongPressGestureRecognizer(IntPtr) UILongPressGestureRecognizer(IntPtr) |
A constructor used when creating managed representations of unmanaged objects; Called by the runtime. |
UILongPressGestureRecognizer(NSObject, Selector) UILongPressGestureRecognizer(NSObject, Selector) | |
UILongPressGestureRecognizer(NSObjectFlag) UILongPressGestureRecognizer(NSObjectFlag) |
Constructor to call on derived classes to skip initialization and merely allocate the object. |
Properties
AllowableMovement AllowableMovement |
The maximum movement, in points, of the fingers before the gesture fails. |
AllowedPressTypes AllowedPressTypes |
An array of UIPressType that the gesture recognizer responds to. (Inherited from UIGestureRecognizer) |
AllowedTouchTypes AllowedTouchTypes |
An array of UITouchType that the gesture recognizer responds to. (Inherited from UIGestureRecognizer) |
CancelsTouchesInView CancelsTouchesInView |
Whether touches recognized as part of a gesture should be delivered to the underlying UIView. (Inherited from UIGestureRecognizer) |
Class Class | Inherited from NSObject |
ClassHandle ClassHandle |
The handle for this class. |
DebugDescription DebugDescription |
A developer-meaningful description of this object. (Inherited from NSObject) |
DelaysTouchesBegan DelaysTouchesBegan |
Whether this UIGestureRecognizer should delay sending touches to the underlying UIVew during the gesture's begin phase. (Inherited from UIGestureRecognizer) |
DelaysTouchesEnded DelaysTouchesEnded |
Whether this UIGestureRecgonizer should delay sending touches to the underlying UIView during the gesture's end phase. (Inherited from UIGestureRecognizer) |
Delegate Delegate |
An instance of the UIKit.IUIGestureRecognizerDelegate model class which acts as the class delegate. (Inherited from UIGestureRecognizer) |
Description Description |
Description of the object, the Objective-C version of ToString. (Inherited from NSObject) |
Enabled Enabled |
Whether the UIGestureRecognizer is enabled. (Inherited from UIGestureRecognizer) |
Handle Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from NSObject) |
IsDirectBinding IsDirectBinding | Inherited from NSObject |
IsProxy IsProxy | Inherited from NSObject |
MinimumPressDuration MinimumPressDuration |
The minimum time, in seconds, fingers must press for the gesture to be recognized. Default is 0.5. |
Name Name |
Gets or set the name of the recognizer. (Inherited from UIGestureRecognizer) |
NumberOfTapsRequired NumberOfTapsRequired |
The number of taps in the view required for the gesture to be recognized. Default is 0. |
NumberOfTouches NumberOfTouches |
The number of touches involved in the gesture. (Inherited from UIGestureRecognizer) |
NumberOfTouchesRequired NumberOfTouchesRequired |
The number of fingers that must touch the view for the gesture to be recognized. Default is 1. |
RequiresExclusiveTouchType RequiresExclusiveTouchType |
Gets or sets whether the UIGestureRecognizer is only considering a single type of touch. (Inherited from UIGestureRecognizer) |
RetainCount RetainCount |
Returns the current Objective-C retain count for the object. (Inherited from NSObject) |
Self Self | Inherited from NSObject |
ShouldBegin ShouldBegin |
Delegate invoked by the object to get a value. (Inherited from UIGestureRecognizer) |
ShouldBeRequiredToFailBy ShouldBeRequiredToFailBy |
Delegate invoked by the object to get a value. (Inherited from UIGestureRecognizer) |
ShouldReceivePress ShouldReceivePress |
Delegate invoked by the object to get a value. (Inherited from UIGestureRecognizer) |
ShouldReceiveTouch ShouldReceiveTouch |
Delegate invoked by the object to get a value. (Inherited from UIGestureRecognizer) |
ShouldRecognizeSimultaneously ShouldRecognizeSimultaneously |
Delegate invoked by the object to get a value. (Inherited from UIGestureRecognizer) |
ShouldRequireFailureOf ShouldRequireFailureOf |
Delegate invoked by the object to get a value. (Inherited from UIGestureRecognizer) |
State State |
The current state of this UIGestureRecognizer. (Inherited from UIGestureRecognizer) |
Superclass Superclass | Inherited from NSObject |
SuperHandle SuperHandle |
Handle used to represent the methods in the base class for this NSObject. (Inherited from NSObject) |
View View |
The UIView to which this UIGestureRecognizer is attached. Read-only. (Inherited from UIGestureRecognizer) |
WeakDelegate WeakDelegate |
An object that can respond to the delegate protocol for this type (Inherited from UIGestureRecognizer) |
Zone Zone | Inherited from NSObject |
Methods
Extension Methods
GetDebugDescription(INSObjectProtocol) GetDebugDescription(INSObjectProtocol) | |
GetAccessibilityCustomRotors(NSObject) GetAccessibilityCustomRotors(NSObject) |
Gets the array of UIAccessibilityCustomRotor objects appropriate for |
SetAccessibilityCustomRotors(NSObject, UIAccessibilityCustomRotor[]) SetAccessibilityCustomRotors(NSObject, UIAccessibilityCustomRotor[]) |
Sets the array of UIAccessibilityCustomRotor objects appropriate for |
Applies to
See also
Feedback
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.
Loading feedback...