UIDropInteractionDelegate_Extensions.GetPreviewForDroppingItem(IUIDropInteractionDelegate, UIDropInteraction, UIDragItem, UITargetedDragPreview) UIDropInteractionDelegate_Extensions.GetPreviewForDroppingItem(IUIDropInteractionDelegate, UIDropInteraction, UIDragItem, UITargetedDragPreview) Method

Definition

Method that is called for each drag item to allow the developer to provide a custom preview.

public static UIKit.UITargetedDragPreview GetPreviewForDroppingItem (this UIKit.IUIDropInteractionDelegate This, UIKit.UIDropInteraction interaction, UIKit.UIDragItem item, UIKit.UITargetedDragPreview defaultPreview);
static member GetPreviewForDroppingItem : UIKit.IUIDropInteractionDelegate * UIKit.UIDropInteraction * UIKit.UIDragItem * UIKit.UITargetedDragPreview -> UIKit.UITargetedDragPreview

Parameters

This
IUIDropInteractionDelegate IUIDropInteractionDelegate

The instance on which this extension method operates.

interaction
UIDropInteraction UIDropInteraction

The interaction that is making the request.

item
UIDragItem UIDragItem

The item for which to get a preview.

defaultPreview
UITargetedDragPreview UITargetedDragPreview

The default preview for the item.

Returns

Applies to