iOS Guides | Samples

UIKit.UIDragItem Class

An item that is being dragged.

See Also: UIDragItem


[Foundation.Register("UIDragItem", true)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.None, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public class UIDragItem : NSObject


Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions:

The members of UIKit.UIDragItem are listed below.

See Also: NSObject

Public Constructors

Creates a new drag item with the specified item provider.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

ClassHandleIntPtr. The handle for this class.
ItemProviderNSItemProvider. Gets the item provider that conveys the underlying item data across process boundaries.
PreviewProviderFunc<UIDragPreview>. Gets or sets a function that returns a visual drag preview for the item.