iOS Guides | Samples

UIKit.UIDragInteraction Class

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

See Also: UIDragInteraction


[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


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

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.
ClassHandleIntPtr. The handle for this class.
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.
EnabledByDefaultBoolean. Gets a Boolean value that tells whether the interaction is enabled by default on the device.
ViewUIView. Gets the view for the interaction.

Public Methods

Method that is called when the drag point enters a view.
Method that is called when the drag point is about to enter a view.

Protected Methods

Releases the resources used by the UIDragInteraction object.