편집

다음을 통해 공유


UIDragInteractionDelegate_Extensions Class

Definition

Extension methods to the IUIDragInteractionDelegate interface to support all the methods from the UIDragInteractionDelegate protocol.

public static class UIDragInteractionDelegate_Extensions
type UIDragInteractionDelegate_Extensions = class
Inheritance
UIDragInteractionDelegate_Extensions

Remarks

The extension methods for IUIDragInteractionDelegate allow developers to treat instances of the interface as having all the optional methods of the original UIDragInteractionDelegate protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.

Methods

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