IUICollectionViewDragDelegate Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Interface for a drag operation that started from a collection view.
[Foundation.Protocol(Name="UICollectionViewDragDelegate", WrapperType=typeof(UIKit.UICollectionViewDragDelegateWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetItemsForBeginningDragSession", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UICollectionView), typeof(UIKit.IUIDragSession), typeof(Foundation.NSIndexPath) }, ReturnType=typeof(UIKit.UIDragItem[]), Selector="collectionView:itemsForBeginningDragSession:atIndexPath:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetItemsForAddingToDragSession", ParameterByRef=new System.Boolean[] { false, false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UICollectionView), typeof(UIKit.IUIDragSession), typeof(Foundation.NSIndexPath), typeof(CoreGraphics.CGPoint) }, ReturnType=typeof(UIKit.UIDragItem[]), Selector="collectionView:itemsForAddingToDragSession:atIndexPath:point:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetDragPreviewParameters", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UICollectionView), typeof(Foundation.NSIndexPath) }, ReturnType=typeof(UIKit.UIDragPreviewParameters), Selector="collectionView:dragPreviewParametersForItemAtIndexPath:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DragSessionWillBegin", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UICollectionView), typeof(UIKit.IUIDragSession) }, Selector="collectionView:dragSessionWillBegin:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DragSessionDidEnd", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UICollectionView), typeof(UIKit.IUIDragSession) }, Selector="collectionView:dragSessionDidEnd:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DragSessionAllowsMoveOperation", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UICollectionView), typeof(UIKit.IUIDragSession) }, ReturnType=typeof(System.Boolean), Selector="collectionView:dragSessionAllowsMoveOperation:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DragSessionIsRestrictedToDraggingApplication", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UICollectionView), typeof(UIKit.IUIDragSession) }, ReturnType=typeof(System.Boolean), Selector="collectionView:dragSessionIsRestrictedToDraggingApplication:")]
public interface IUICollectionViewDragDelegate : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="UICollectionViewDragDelegate", WrapperType=typeof(UIKit.UICollectionViewDragDelegateWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetItemsForBeginningDragSession", ParameterByRef=new System.Boolean[] { false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UICollectionView), typeof(UIKit.IUIDragSession), typeof(Foundation.NSIndexPath) }, ReturnType=typeof(UIKit.UIDragItem[]), Selector="collectionView:itemsForBeginningDragSession:atIndexPath:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetItemsForAddingToDragSession", ParameterByRef=new System.Boolean[] { false, false, false, false }, ParameterType=new System.Type[] { typeof(UIKit.UICollectionView), typeof(UIKit.IUIDragSession), typeof(Foundation.NSIndexPath), typeof(CoreGraphics.CGPoint) }, ReturnType=typeof(UIKit.UIDragItem[]), Selector="collectionView:itemsForAddingToDragSession:atIndexPath:point:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="GetDragPreviewParameters", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UICollectionView), typeof(Foundation.NSIndexPath) }, ReturnType=typeof(UIKit.UIDragPreviewParameters), Selector="collectionView:dragPreviewParametersForItemAtIndexPath:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DragSessionWillBegin", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UICollectionView), typeof(UIKit.IUIDragSession) }, Selector="collectionView:dragSessionWillBegin:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DragSessionDidEnd", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UICollectionView), typeof(UIKit.IUIDragSession) }, Selector="collectionView:dragSessionDidEnd:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DragSessionAllowsMoveOperation", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UICollectionView), typeof(UIKit.IUIDragSession) }, ReturnType=typeof(System.Boolean), Selector="collectionView:dragSessionAllowsMoveOperation:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DragSessionIsRestrictedToDraggingApplication", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(UIKit.UICollectionView), typeof(UIKit.IUIDragSession) }, ReturnType=typeof(System.Boolean), Selector="collectionView:dragSessionIsRestrictedToDraggingApplication:")>]
type IUICollectionViewDragDelegate = interface
interface INativeObject
interface IDisposable
- Derived
- Attributes
- Implements
Properties
| Name | Description |
|---|---|
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from INativeObject) |
Methods
| Name | Description |
|---|---|
| DragSessionAllowsMoveOperation(UICollectionView, IUIDragSession) | |
| DragSessionDidEnd(UICollectionView, IUIDragSession) |
Method that is called when the user cancels or completes the drag session. |
| DragSessionIsRestrictedToDraggingApplication(UICollectionView, IUIDragSession) | |
| DragSessionWillBegin(UICollectionView, IUIDragSession) |
Method that is called just before a drag session begins. |
| GetDragPreviewParameters(UICollectionView, NSIndexPath) |
Gets the preview parameters for the item at the specified index path. |
| GetItemsForAddingToDragSession(UICollectionView, IUIDragSession, NSIndexPath, CGPoint) |
Adds the items at the index path to the drag session. |
| GetItemsForBeginningDragSession(UICollectionView, IUIDragSession, NSIndexPath) |
Returns the items that were used to begin the drag operation, if present. |
Extension Methods
| Name | Description |
|---|---|
| GetHandle(INativeObject) | |
| GetNonNullHandle(INativeObject, String) | |
| DragSessionAllowsMoveOperation(IUICollectionViewDragDelegate, UICollectionView, IUIDragSession) | |
| DragSessionDidEnd(IUICollectionViewDragDelegate, UICollectionView, IUIDragSession) |
Method that is called when the user cancels or completes the drag session. |
| DragSessionIsRestrictedToDraggingApplication(IUICollectionViewDragDelegate, UICollectionView, IUIDragSession) | |
| DragSessionWillBegin(IUICollectionViewDragDelegate, UICollectionView, IUIDragSession) |
Method that is called just before a drag session begins. |
| GetDragPreviewParameters(IUICollectionViewDragDelegate, UICollectionView, NSIndexPath) |
Gets the preview parameters for the item at the specified index path. |
| GetItemsForAddingToDragSession(IUICollectionViewDragDelegate, UICollectionView, IUIDragSession, NSIndexPath, CGPoint) |
Adds the items at the index path to the drag session. |