Share via


IUIDragDropSession Interface

Definition

Interface for querying drag-and-drop capabilities and state.

[Foundation.Protocol(Name="UIDragDropSession", WrapperType=typeof(UIKit.UIDragDropSessionWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="LocationInView", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIView) }, ReturnType=typeof(CoreGraphics.CGPoint), Selector="locationInView:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="HasConformingItems", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(System.String[]) }, ReturnType=typeof(System.Boolean), Selector="hasItemsConformingToTypeIdentifiers:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="CanLoadObjects", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(ObjCRuntime.Class) }, ReturnType=typeof(System.Boolean), Selector="canLoadObjectsOfClass:")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="items", IsProperty=true, IsRequired=true, IsStatic=false, Name="Items", PropertyType=typeof(UIKit.UIDragItem[]), Selector="items")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="allowsMoveOperation", IsProperty=true, IsRequired=true, IsStatic=false, Name="AllowsMoveOperation", PropertyType=typeof(System.Boolean), Selector="allowsMoveOperation")]
[Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="isRestrictedToDraggingApplication", IsProperty=true, IsRequired=true, IsStatic=false, Name="RestrictedToDraggingApplication", PropertyType=typeof(System.Boolean), Selector="restrictedToDraggingApplication")]
public interface IUIDragDropSession : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="UIDragDropSession", WrapperType=typeof(UIKit.UIDragDropSessionWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="LocationInView", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(UIKit.UIView) }, ReturnType=typeof(CoreGraphics.CGPoint), Selector="locationInView:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="HasConformingItems", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(System.String[]) }, ReturnType=typeof(System.Boolean), Selector="hasItemsConformingToTypeIdentifiers:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="CanLoadObjects", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(ObjCRuntime.Class) }, ReturnType=typeof(System.Boolean), Selector="canLoadObjectsOfClass:")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="items", IsProperty=true, IsRequired=true, IsStatic=false, Name="Items", PropertyType=typeof(UIKit.UIDragItem[]), Selector="items")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="allowsMoveOperation", IsProperty=true, IsRequired=true, IsStatic=false, Name="AllowsMoveOperation", PropertyType=typeof(System.Boolean), Selector="allowsMoveOperation")>]
[<Foundation.ProtocolMember(ArgumentSemantic=ObjCRuntime.ArgumentSemantic.None, GetterSelector="isRestrictedToDraggingApplication", IsProperty=true, IsRequired=true, IsStatic=false, Name="RestrictedToDraggingApplication", PropertyType=typeof(System.Boolean), Selector="restrictedToDraggingApplication")>]
type IUIDragDropSession = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Properties

Name Description
AllowsMoveOperation

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

Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)
Items

Gets the drag items that are in the session.

RestrictedToDraggingApplication

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

Methods

Name Description
CanLoadObjects(Class)

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

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.

LocationInView(UIView)

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

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)
CanLoadObjects(IUIDragDropSession, Type)

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

Applies to