Share via


IUIDragInteractionDelegate Interface

Definition

Delegate object for drag interaction events.

[Foundation.Protocol(Name="UIDragInteractionDelegate", WrapperType=typeof(UIKit.UIDragInteractionDelegateWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetItemsForBeginningSession", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession) }, ReturnType=typeof(UIKit.UIDragItem[]), Selector="dragInteraction:itemsForBeginningSession:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetPreviewForLiftingItem", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.UIDragItem), typeof(UIKit.IUIDragSession) }, ReturnType=typeof(UIKit.UITargetedDragPreview), Selector="dragInteraction:previewForLiftingItem:session:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WillAnimateLift", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragAnimating), typeof(UIKit.IUIDragSession) }, Selector="dragInteraction:willAnimateLiftWithAnimator:session:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="SessionWillBegin", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession) }, Selector="dragInteraction:sessionWillBegin:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="SessionAllowsMoveOperation", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession) }, ReturnType=typeof(System.Boolean), Selector="dragInteraction:sessionAllowsMoveOperation:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="SessionIsRestrictedToDraggingApplication", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession) }, ReturnType=typeof(System.Boolean), Selector="dragInteraction:sessionIsRestrictedToDraggingApplication:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PrefersFullSizePreviews", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession) }, ReturnType=typeof(System.Boolean), Selector="dragInteraction:prefersFullSizePreviewsForSession:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="SessionDidMove", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession) }, Selector="dragInteraction:sessionDidMove:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="SessionWillEnd", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession), typeof(UIKit.UIDropOperation) }, Selector="dragInteraction:session:willEndWithOperation:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="SessionDidEnd", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession), typeof(UIKit.UIDropOperation) }, Selector="dragInteraction:session:didEndWithOperation:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="SessionDidTransferItems", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession) }, Selector="dragInteraction:sessionDidTransferItems:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetItemsForAddingToSession", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession), typeof(CoreGraphics.CGPoint) }, ReturnType=typeof(UIKit.UIDragItem[]), Selector="dragInteraction:itemsForAddingToSession:withTouchAtPoint:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetSessionForAddingItems", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession[]), typeof(CoreGraphics.CGPoint) }, ReturnType=typeof(UIKit.IUIDragSession), Selector="dragInteraction:sessionForAddingItems:withTouchAtPoint:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WillAddItems", ParameterByRef=new System.Boolean[] { false, false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession), typeof(UIKit.UIDragItem[]), typeof(UIKit.UIDragInteraction) }, Selector="dragInteraction:session:willAddItems:forInteraction:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetPreviewForCancellingItem", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.UIDragItem), typeof(UIKit.UITargetedDragPreview) }, ReturnType=typeof(UIKit.UITargetedDragPreview), Selector="dragInteraction:previewForCancellingItem:withDefault:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WillAnimateCancel", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.UIDragItem), typeof(UIKit.IUIDragAnimating) }, Selector="dragInteraction:item:willAnimateCancelWithAnimator:")]
public interface IUIDragInteractionDelegate : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="UIDragInteractionDelegate", WrapperType=typeof(UIKit.UIDragInteractionDelegateWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetItemsForBeginningSession", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession) }, ReturnType=typeof(UIKit.UIDragItem[]), Selector="dragInteraction:itemsForBeginningSession:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetPreviewForLiftingItem", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.UIDragItem), typeof(UIKit.IUIDragSession) }, ReturnType=typeof(UIKit.UITargetedDragPreview), Selector="dragInteraction:previewForLiftingItem:session:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WillAnimateLift", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragAnimating), typeof(UIKit.IUIDragSession) }, Selector="dragInteraction:willAnimateLiftWithAnimator:session:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="SessionWillBegin", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession) }, Selector="dragInteraction:sessionWillBegin:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="SessionAllowsMoveOperation", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession) }, ReturnType=typeof(System.Boolean), Selector="dragInteraction:sessionAllowsMoveOperation:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="SessionIsRestrictedToDraggingApplication", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession) }, ReturnType=typeof(System.Boolean), Selector="dragInteraction:sessionIsRestrictedToDraggingApplication:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="PrefersFullSizePreviews", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession) }, ReturnType=typeof(System.Boolean), Selector="dragInteraction:prefersFullSizePreviewsForSession:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="SessionDidMove", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession) }, Selector="dragInteraction:sessionDidMove:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="SessionWillEnd", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession), typeof(UIKit.UIDropOperation) }, Selector="dragInteraction:session:willEndWithOperation:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="SessionDidEnd", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession), typeof(UIKit.UIDropOperation) }, Selector="dragInteraction:session:didEndWithOperation:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="SessionDidTransferItems", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession) }, Selector="dragInteraction:sessionDidTransferItems:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetItemsForAddingToSession", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession), typeof(CoreGraphics.CGPoint) }, ReturnType=typeof(UIKit.UIDragItem[]), Selector="dragInteraction:itemsForAddingToSession:withTouchAtPoint:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetSessionForAddingItems", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession[]), typeof(CoreGraphics.CGPoint) }, ReturnType=typeof(UIKit.IUIDragSession), Selector="dragInteraction:sessionForAddingItems:withTouchAtPoint:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WillAddItems", ParameterByRef=new System.Boolean[] { false, false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.IUIDragSession), typeof(UIKit.UIDragItem[]), typeof(UIKit.UIDragInteraction) }, Selector="dragInteraction:session:willAddItems:forInteraction:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetPreviewForCancellingItem", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.UIDragItem), typeof(UIKit.UITargetedDragPreview) }, ReturnType=typeof(UIKit.UITargetedDragPreview), Selector="dragInteraction:previewForCancellingItem:withDefault:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WillAnimateCancel", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UIDragInteraction), typeof(UIKit.UIDragItem), typeof(UIKit.IUIDragAnimating) }, Selector="dragInteraction:item:willAnimateCancelWithAnimator:")>]
type IUIDragInteractionDelegate = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Properties

Name Description
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Methods

Name Description
GetItemsForAddingToSession(UIDragInteraction, IUIDragSession, CGPoint)

Method that is called to add drag items to a drag session in response to a gesture by the user.

GetItemsForBeginningSession(UIDragInteraction, IUIDragSession)

Method that is called to get the items that will begin a drag interaction.

GetPreviewForCancellingItem(UIDragInteraction, UIDragItem, UITargetedDragPreview)

Method that is called for each visible item in a drag session when the user cancels the drag session.

GetPreviewForLiftingItem(UIDragInteraction, UIDragItem, IUIDragSession)

Method that is called to get a targeted drag preview for animating the lift.

GetSessionForAddingItems(UIDragInteraction, IUIDragSession[], CGPoint)

Method that is called to disambiguate to which session to add items when multiple sessions are active.

PrefersFullSizePreviews(UIDragInteraction, IUIDragSession)

Method that is called to find out whether the application prefers full size previews in the source view.

SessionAllowsMoveOperation(UIDragInteraction, IUIDragSession)

Method that is called to find out if the session allows items to be moved, instead of copied.

SessionDidEnd(UIDragInteraction, IUIDragSession, UIDropOperation)

Method that is called when the drag session ends.

SessionDidMove(UIDragInteraction, IUIDragSession)

Method that is called when the drag point moves.

SessionDidTransferItems(UIDragInteraction, IUIDragSession)

Method that is called after the dropped items have been received.

SessionIsRestrictedToDraggingApplication(UIDragInteraction, IUIDragSession)

Method that is called to find out if the application only supports drag and drop operations to and from itself.

SessionWillBegin(UIDragInteraction, IUIDragSession)

Method that is called when a session is about to begin.

SessionWillEnd(UIDragInteraction, IUIDragSession, UIDropOperation)

Method that is called when a session is about to end.

WillAddItems(UIDragInteraction, IUIDragSession, UIDragItem[], UIDragInteraction)

Method that is called when items are about to be added to the session.

WillAnimateCancel(UIDragInteraction, UIDragItem, IUIDragAnimating)

Method that is called before the animation of each item in a cancellation begins.

WillAnimateLift(UIDragInteraction, IUIDragAnimating, IUIDragSession)

Method that is called before each item with a lift preview is about to lift.

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)
GetItemsForAddingToSession(IUIDragInteractionDelegate, UIDragInteraction, IUIDragSession, CGPoint)

Method that is called to add drag items to a drag session in response to a gesture by the user.

GetPreviewForCancellingItem(IUIDragInteractionDelegate, UIDragInteraction, UIDragItem, UITargetedDragPreview)

Method that is called for each visible item in a drag session when the user cancels the drag session.

GetPreviewForLiftingItem(IUIDragInteractionDelegate, UIDragInteraction, UIDragItem, IUIDragSession)

Method that is called to get a targeted drag preview for animating the lift.

GetSessionForAddingItems(IUIDragInteractionDelegate, UIDragInteraction, IUIDragSession[], CGPoint)

Method that is called to disambiguate to which session to add items when multiple sessions are active.

PrefersFullSizePreviews(IUIDragInteractionDelegate, UIDragInteraction, IUIDragSession)

Method that is called to find out whether the application prefers full size previews in the source view.

SessionAllowsMoveOperation(IUIDragInteractionDelegate, UIDragInteraction, IUIDragSession)

Method that is called to find out if the session allows items to be moved, instead of copied.

SessionDidEnd(IUIDragInteractionDelegate, UIDragInteraction, IUIDragSession, UIDropOperation)

Method that is called when the drag session ends.

SessionDidMove(IUIDragInteractionDelegate, UIDragInteraction, IUIDragSession)

Method that is called when the drag point moves.

SessionDidTransferItems(IUIDragInteractionDelegate, UIDragInteraction, IUIDragSession)

Method that is called after the dropped items have been received.

SessionIsRestrictedToDraggingApplication(IUIDragInteractionDelegate, UIDragInteraction, IUIDragSession)

Method that is called to find out if the application only supports drag and drop operations to and from itself.

SessionWillBegin(IUIDragInteractionDelegate, UIDragInteraction, IUIDragSession)

Method that is called when a session is about to begin.

SessionWillEnd(IUIDragInteractionDelegate, UIDragInteraction, IUIDragSession, UIDropOperation)

Method that is called when a session is about to end.

WillAddItems(IUIDragInteractionDelegate, UIDragInteraction, IUIDragSession, UIDragItem[], UIDragInteraction)

Method that is called when items are about to be added to the session.

WillAnimateCancel(IUIDragInteractionDelegate, UIDragInteraction, UIDragItem, IUIDragAnimating)

Method that is called before the animation of each item in a cancellation begins.

WillAnimateLift(IUIDragInteractionDelegate, UIDragInteraction, IUIDragAnimating, IUIDragSession)

Method that is called before each item with a lift preview is about to lift.

Applies to