Protocol

UIDropInteractionDelegate

The interface for configuring and controlling a drop interaction.

Declaration

@protocol UIDropInteractionDelegate

Topics

Handling the Drop

- dropInteraction:canHandleSession:

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

- dropInteraction:performDrop:

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

Tracking the Drop Movements

- dropInteraction:sessionDidEnter:

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

- dropInteraction:sessionDidUpdate:

Tells the delegate the drop session has changed.

- dropInteraction:sessionDidExit:

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

- dropInteraction:sessionDidEnd:

Tells the delegate the drop session has ended.

Animating the Drop

- dropInteraction:item:willAnimateDropWithAnimator:

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

- dropInteraction:previewForDroppingItem:withDefault:

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

- dropInteraction:concludeDrop:

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

Relationships

Inherits From

See Also

Drag-and-Drop Interactions

UIDragInteractionDelegate

The interface for configuring and controlling a drag interaction.

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.

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.