iOS Guides | Samples

MonoTouch.UIKit.UILongPressGestureRecognizer Class

Gesture recognizer for long presses.

See Also: UILongPressGestureRecognizer

Syntax

[MonoTouch.Foundation.Register("UILongPressGestureRecognizer", true)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 3, 2, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
public class UILongPressGestureRecognizer : UIGestureRecognizer

Remarks

The long press gesture involves one or more (see UILongPressGestureRecognizer.NumberOfTouchesRequired) fingers to to press for a certain amount of time (see UILongPressGestureRecognizer.MinimumPressDuration). The fingers may not move more than UILongPressGestureRecognizer.AllowableMovement.

Related content

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UILongPressGestureRecognizer are listed below.

See Also: UIGestureRecognizer

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
Constructs a gesture recognizer and provides a method to invoke when the gesture is recognized.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
Constructs a gesture recognizer and provides a method to invoke when the gesture is recognized.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

AllowableMovementSingle. The maximum movement, in points, of the fingers before the gesture fails.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
MinimumPressDurationDouble. The minimum time, in seconds, fingers must press for the gesture to be recognized. Default is 0.5.
NumberOfTapsRequiredInt32. The number of taps in the view required for the gesture to be recognized. Default is 0.
NumberOfTouchesRequiredUInt32. The number of fingers that must touch the view for the gesture to be recognized. Default is 1.