Protocol

UIDropInteractionDelegate

The interface for configuring and controlling a drop interaction.

Topics

Handling the Drop

func dropInteraction(UIDropInteraction, canHandle: UIDropSession)

Asks the delegate whether it can handle the session’s drag items.

func dropInteraction(UIDropInteraction, performDrop: UIDropSession)

Tells the delegate it can request the item provider data from the session’s drag items.

Tracking the Drop Movements

func dropInteraction(UIDropInteraction, sessionDidEnter: UIDropSession)

Tells the delegate the drop session has moved into the drop interaction’s view.

func dropInteraction(UIDropInteraction, sessionDidUpdate: UIDropSession)

Tells the delegate the drop session has changed.

func dropInteraction(UIDropInteraction, sessionDidExit: UIDropSession)

Tells the delegate the drop session has moved out of the drop interaction’s view.

func dropInteraction(UIDropInteraction, sessionDidEnd: UIDropSession)

Tells the delegate the drop session has ended.

Animating the Drop

func dropInteraction(UIDropInteraction, item: UIDragItem, willAnimateDropWith: UIDragAnimating)

Tells the delegate the system's drop animation is about to start.

func dropInteraction(UIDropInteraction, previewForDropping: UIDragItem, withDefault: UITargetedDragPreview)

Asks the delegate for the targeted drag item preview to show during the drop animation.

func dropInteraction(UIDropInteraction, concludeDrop: UIDropSession)

Tells the delegate the drop activity and its related animations have finished.

Relationships

Inherits From

See Also

Drag-and-Drop Interactions

protocol UIDragInteractionDelegate

The interface for configuring and controlling a drag interaction.

protocol UIInteraction

The interface for attaching a gesture-based behavior to a view, such as to express a drag, drop, or spring-loaded interaction.

class UIDragInteraction

An interaction to enable dragging of items from a view, employing a delegate to provide drag items and to respond to calls from the drag session.

class UIDropInteraction

An interaction to enable dropping of items onto a view, employing a delegate to instantiate objects and respond to calls from the drop session.