IUICollectionViewDropCoordinator 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
系统创建的对象,用于与集合视图协调放置操作。
[Foundation.Protocol(Name="UICollectionViewDropCoordinator", WrapperType=typeof(UIKit.UICollectionViewDropCoordinatorWrapper))]
[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 IUICollectionViewDropCoordinator : IDisposable, ObjCRuntime.INativeObject
type IUICollectionViewDropCoordinator = interface
interface INativeObject
interface IDisposable
- 属性
- 实现
属性
DestinationIndexPath |
获取插入的索引路径。 |
Handle |
处理指向非托管对象表示形式的 (指针) 。 (继承自 INativeObject) |
Items |
获取拖动项。 |
Proposal |
获取放置建议。 |
Session |
获取放置会话。 |
方法
DropItemIntoItem(UIDragItem, NSIndexPath, CGRect) |
将拖动项拖放到指定矩形中,该矩形位于指定项索引路径处的项的坐标系中。 |
DropItemToItem(UIDragItem, NSIndexPath) |
将拖动项拖放到指定项索引路径处的项中。 |
DropItemToPlaceholder(UIDragItem, UICollectionViewDropPlaceholder) |
将拖动项拖放到指定的占位符。 |
DropItemToTarget(UIDragItem, UIDragPreviewTarget) |
将拖动项拖放到指定目标。 |