IUIDragSession IUIDragSession Interface

Definition

Interface for providing custom data, visible to the originating activity only, to a drag interaction.

[Foundation.Protocol(Name="UIDragSession", WrapperType=typeof(UIKit.UIDragSessionWrapper))]
[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 interface IUIDragSession : IDisposable, UIKit.IUIDragDropSession
type IUIDragSession = interface
    interface INativeObject
    interface IDisposable
    interface IUIDragDropSession
Attributes
Implements

Properties

AllowsMoveOperation AllowsMoveOperation

Gets a Boolean value that tells whether the session can move items within a single app.

(Inherited from IUIDragDropSession)
Handle Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)
Items Items

Gets the drag items that are in the session.

(Inherited from IUIDragDropSession)
LocalContext LocalContext

Gets or sets the optional object that contains context information visible to the originating activity.

RestrictedToDraggingApplication RestrictedToDraggingApplication

Gets a Boolean value that tells whether the drag activity is confined to the originating app.

(Inherited from IUIDragDropSession)

Methods

CanLoadObjects(Class) CanLoadObjects(Class)

Returns a Boolean value that tells whether the session can load objects of the specified class.

(Inherited from IUIDragDropSession)
HasConformingItems(String[]) HasConformingItems(String[])

TReturns a Boolean value that tells whether the session contains at least one item that is described by any of the specified type identifiers.

(Inherited from IUIDragDropSession)
LocationInView(UIView) LocationInView(UIView)

Returns the location of the drag-drop activity in the coordinate frame of the specified view.

(Inherited from IUIDragDropSession)

Extension Methods

CanLoadObjects(IUIDragDropSession, Type) CanLoadObjects(IUIDragDropSession, Type)

Returns true if the specified session can instantiate items of the specified type.

Applies to