iOS Guides | Samples

UIKit.UIDragItem Class

An item that is being dragged.

See Also: UIDragItem

Syntax

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

Requirements

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

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

[read-only]
override
ClassHandleIntPtr. The handle for this class.
[read-only]
ItemProviderNSItemProvider. Gets the item provider that conveys the underlying item data across process boundaries.
LocalObjectNSObject. Gets or sets a custom object, such as a model object, to associate with the drag item.
PreviewProviderFunc<UIDragPreview>. Gets or sets a function that returns a visual drag preview for the item.