Edit

Share via


UITargetedDragPreview.GetPreview Method

Definition

Overloads

GetPreview(NSUrl, UIDragPreviewTarget)

Creates and returns a new targeted drag item preview from the specified url and preview target.

GetPreview(NSUrl, String, UIDragPreviewTarget)

Creates and returns a new targeted drag item preview from the specified url, title, and preview target.

GetPreview(NSUrl, UIDragPreviewTarget)

Creates and returns a new targeted drag item preview from the specified url and preview target.

[Foundation.Export("previewForURL:target:")]
public static UIKit.UITargetedDragPreview GetPreview (Foundation.NSUrl url, UIKit.UIDragPreviewTarget target);
static member GetPreview : Foundation.NSUrl * UIKit.UIDragPreviewTarget -> UIKit.UITargetedDragPreview

Parameters

url
NSUrl

The location of the resource for which to get a preview.

target
UIDragPreviewTarget

The target location.

Returns

Attributes

Applies to

GetPreview(NSUrl, String, UIDragPreviewTarget)

Creates and returns a new targeted drag item preview from the specified url, title, and preview target.

[Foundation.Export("previewForURL:title:target:")]
public static UIKit.UITargetedDragPreview GetPreview (Foundation.NSUrl url, string title, UIKit.UIDragPreviewTarget target);
static member GetPreview : Foundation.NSUrl * string * UIKit.UIDragPreviewTarget -> UIKit.UITargetedDragPreview

Parameters

url
NSUrl

The location of the resource for which to get a preview.

title
String

A title to use for the resource.

This parameter can be null.

target
UIDragPreviewTarget

The target location.

Returns

Attributes

Applies to