IUICollectionViewDropDelegate 接口

定义

表示所需方法的接口 ((如果协议 UICollectionViewDropDelegate有任何) )。

[Foundation.Protocol(Name="UICollectionViewDropDelegate", WrapperType=typeof(UIKit.UICollectionViewDropDelegateWrapper))]
[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 IUICollectionViewDropDelegate : IDisposable, ObjCRuntime.INativeObject
type IUICollectionViewDropDelegate = interface
    interface INativeObject
    interface IDisposable
派生
属性
实现

注解

此接口包含所需的方法 ((如果任何) 由 UICollectionViewDropDelegate定义的协议)。

如果开发人员创建实现此接口的类,则实现方法将自动导出到 Objective-C,并使用协议中 UICollectionViewDropDelegate 定义的方法的匹配签名。

可选方法 (类是否提供 UICollectionViewDropDelegate_Extensions 任何) 作为接口的扩展方法,从而允许开发人员在协议上调用任何可选方法。

属性

Handle

处理指向非托管对象表示形式的 (指针) 。

(继承自 INativeObject)

方法

PerformDrop(UICollectionView, IUICollectionViewDropCoordinator)

调用的方法,用于将数据拖放到集合视图中。

扩展方法

CanHandleDropSession(IUICollectionViewDropDelegate, UICollectionView, IUIDropSession)

返回一个布尔值,该值指示集合视图是否可以处理会话中数据的删除。

DropSessionDidEnd(IUICollectionViewDropDelegate, UICollectionView, IUIDropSession)

删除会话结束时调用的方法。

DropSessionDidEnter(IUICollectionViewDropDelegate, UICollectionView, IUIDropSession)

放置点进入集合视图时调用的方法。

DropSessionDidExit(IUICollectionViewDropDelegate, UICollectionView, IUIDropSession)

放置点离开集合视图时调用的方法。

DropSessionDidUpdate(IUICollectionViewDropDelegate, UICollectionView, IUIDropSession, NSIndexPath)

集合视图上的放置点发生更改时调用的方法。

GetDropPreviewParameters(IUICollectionViewDropDelegate, UICollectionView, NSIndexPath)

返回指定索引路径处项的拖动预览参数。

适用于