UIDropInteractionDelegate_Extensions 类

定义

接口的 IUIDropInteractionDelegate 扩展方法,以支持协议中的所有方法 UIDropInteractionDelegate

public static class UIDropInteractionDelegate_Extensions
type UIDropInteractionDelegate_Extensions = class
继承
UIDropInteractionDelegate_Extensions

注解

IUIDropInteractionDelegate 扩展方法允许开发人员将 接口的实例视为具有原始 UIDropInteractionDelegate 协议的所有可选方法。 由于 接口仅包含所需的成员,因此这些扩展方法允许开发人员调用协议的可选成员。

方法

CanHandleSession(IUIDropInteractionDelegate, UIDropInteraction, IUIDropSession)

true如果指定的 interaction 可以处理指定的 session,则返回 。

ConcludeDrop(IUIDropInteractionDelegate, UIDropInteraction, IUIDropSession)

在执行放置操作并完成所有动画后调用的方法。

GetPreviewForDroppingItem(IUIDropInteractionDelegate, UIDropInteraction, UIDragItem, UITargetedDragPreview)

为每个拖动项调用的方法,以允许开发人员提供自定义预览。

PerformDrop(IUIDropInteractionDelegate, UIDropInteraction, IUIDropSession)

调用的方法,以使用来自放置会话中的项提供程序的数据。

SessionDidEnd(IUIDropInteractionDelegate, UIDropInteraction, IUIDropSession)

调用的方法,使开发人员能够释放已完成的放置会话的所有资源。

SessionDidEnter(IUIDropInteractionDelegate, UIDropInteraction, IUIDropSession)

当用户将放置会话拖动到视图进行放置交互时调用的方法。

SessionDidExit(IUIDropInteractionDelegate, UIDropInteraction, IUIDropSession)

当用户将放置会话拖出视图进行放置交互时调用的方法。

SessionDidUpdate(IUIDropInteractionDelegate, UIDropInteraction, IUIDropSession)

当触摸点移动到视图或视图中时,或者在触摸点位于视图中时添加拖动项时调用的方法。

WillAnimateDrop(IUIDropInteractionDelegate, UIDropInteraction, UIDragItem, IUIDragAnimating)

在对拖放进行动画处理之前为每个可见的拖动项调用的方法。

适用于