iOS Guides | Samples

UIKit.UIDragInteraction Class

Interaction for dragging items and delegating drag session calls and item providing.

See Also: UIDragInteraction

Syntax

[Foundation.Register("UIDragInteraction", true)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public class UIDragInteraction : NSObject, IDisposable, IUIInteraction

Requirements

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

The members of UIKit.UIDragInteraction are listed below.

See Also: NSObject

Public Constructors

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

AllowsSimultaneousRecognitionDuringLiftBoolean. Gets or sets a Boolean value that controls whether other gestures can be recognized while lifting.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
DelegateIUIDragInteractionDelegate. An instance of the UIKit.IUIDragInteractionDelegate model class which acts as the class delegate.
EnabledBoolean. Gets or sets a Boolean value that controls whether the drag interaction can receive touches and can participate in an interaction.
[read-only]
static
EnabledByDefaultBoolean. Gets a Boolean value that tells whether the interaction is enabled by default on the device.
[read-only]
ViewUIView. Gets the view for the interaction.

Public Methods

DidMoveToView(UIView)
Method that is called when the drag point enters a view.
WillMoveToView(UIView)
Method that is called when the drag point is about to enter a view.

Protected Methods

override
Dispose(Boolean)
Releases the resources used by the UIDragInteraction object.