Share via


UIDropInteractionDelegate_Extensions.GetPreviewForDroppingItem Method

Definition

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

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UIKit.UITargetedDragPreview? GetPreviewForDroppingItem(this UIKit.IUIDropInteractionDelegate This, UIKit.UIDropInteraction interaction, UIKit.UIDragItem item, UIKit.UITargetedDragPreview defaultPreview);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member GetPreviewForDroppingItem : UIKit.IUIDropInteractionDelegate * UIKit.UIDropInteraction * UIKit.UIDragItem * UIKit.UITargetedDragPreview -> UIKit.UITargetedDragPreview

Parameters

interaction
UIDropInteraction

The interaction that is making the request.

item
UIDragItem

The item for which to get a preview.

defaultPreview
UITargetedDragPreview

The default preview for the item.

Returns

Attributes

Applies to