iOS Guides | Samples

UIKit.UISwipeGestureRecognizer Class

A UIGestureRecognizer that recognizes a swipe gesture in one or more directions.

See Also: UISwipeGestureRecognizer

Syntax

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

Related content

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of UIKit.UISwipeGestureRecognizer 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.

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

[read-only]
override
ClassHandleIntPtr. The handle for this class.
DirectionUISwipeGestureRecognizerDirection. The permitted direction of the swipe. The default is right.
NumberOfTouchesRequirednuint. The minimum number of touches required to recognize the gesture. Default is 1.