Trait UIDragInteractionDelegate

Source
pub unsafe trait UIDragInteractionDelegate: NSObjectProtocol + MainThreadOnly {
Show 16 methods // Provided methods unsafe fn dragInteraction_itemsForBeginningSession( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, ) -> Retained<NSArray<UIDragItem>> where Self: Sized + Message { ... } unsafe fn dragInteraction_previewForLiftingItem_session( &self, interaction: &UIDragInteraction, item: &UIDragItem, session: &ProtocolObject<dyn UIDragSession>, ) -> Option<Retained<UITargetedDragPreview>> where Self: Sized + Message { ... } unsafe fn dragInteraction_willAnimateLiftWithAnimator_session( &self, interaction: &UIDragInteraction, animator: &ProtocolObject<dyn UIDragAnimating>, session: &ProtocolObject<dyn UIDragSession>, ) where Self: Sized + Message { ... } unsafe fn dragInteraction_sessionWillBegin( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, ) where Self: Sized + Message { ... } unsafe fn dragInteraction_sessionAllowsMoveOperation( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, ) -> bool where Self: Sized + Message { ... } unsafe fn dragInteraction_sessionIsRestrictedToDraggingApplication( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, ) -> bool where Self: Sized + Message { ... } unsafe fn dragInteraction_prefersFullSizePreviewsForSession( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, ) -> bool where Self: Sized + Message { ... } unsafe fn dragInteraction_sessionDidMove( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, ) where Self: Sized + Message { ... } unsafe fn dragInteraction_session_willEndWithOperation( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, operation: UIDropOperation, ) where Self: Sized + Message { ... } unsafe fn dragInteraction_session_didEndWithOperation( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, operation: UIDropOperation, ) where Self: Sized + Message { ... } unsafe fn dragInteraction_sessionDidTransferItems( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, ) where Self: Sized + Message { ... } unsafe fn dragInteraction_itemsForAddingToSession_withTouchAtPoint( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, point: CGPoint, ) -> Retained<NSArray<UIDragItem>> where Self: Sized + Message { ... } unsafe fn dragInteraction_sessionForAddingItems_withTouchAtPoint( &self, interaction: &UIDragInteraction, sessions: &NSArray<ProtocolObject<dyn UIDragSession>>, point: CGPoint, ) -> Option<Retained<ProtocolObject<dyn UIDragSession>>> where Self: Sized + Message { ... } unsafe fn dragInteraction_session_willAddItems_forInteraction( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, items: &NSArray<UIDragItem>, adding_interaction: &UIDragInteraction, ) where Self: Sized + Message { ... } unsafe fn dragInteraction_previewForCancellingItem_withDefault( &self, interaction: &UIDragInteraction, item: &UIDragItem, default_preview: &UITargetedDragPreview, ) -> Option<Retained<UITargetedDragPreview>> where Self: Sized + Message { ... } unsafe fn dragInteraction_item_willAnimateCancelWithAnimator( &self, interaction: &UIDragInteraction, item: &UIDragItem, animator: &ProtocolObject<dyn UIDragAnimating>, ) where Self: Sized + Message { ... }
}
Available on crate feature UIDragInteraction only.
Expand description

Provided Methods§

Source

unsafe fn dragInteraction_itemsForBeginningSession( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, ) -> Retained<NSArray<UIDragItem>>
where Self: Sized + Message,

Available on crate features UIDragItem and UIDragSession only.
Source

unsafe fn dragInteraction_previewForLiftingItem_session( &self, interaction: &UIDragInteraction, item: &UIDragItem, session: &ProtocolObject<dyn UIDragSession>, ) -> Option<Retained<UITargetedDragPreview>>
where Self: Sized + Message,

Available on crate features UIDragItem and UIDragSession and UITargetedDragPreview and UITargetedPreview only.
Source

unsafe fn dragInteraction_willAnimateLiftWithAnimator_session( &self, interaction: &UIDragInteraction, animator: &ProtocolObject<dyn UIDragAnimating>, session: &ProtocolObject<dyn UIDragSession>, )
where Self: Sized + Message,

Available on crate feature UIDragSession only.
Source

unsafe fn dragInteraction_sessionWillBegin( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, )
where Self: Sized + Message,

Available on crate feature UIDragSession only.
Source

unsafe fn dragInteraction_sessionAllowsMoveOperation( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, ) -> bool
where Self: Sized + Message,

Available on crate feature UIDragSession only.
Source

unsafe fn dragInteraction_sessionIsRestrictedToDraggingApplication( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, ) -> bool
where Self: Sized + Message,

Available on crate feature UIDragSession only.
Source

unsafe fn dragInteraction_prefersFullSizePreviewsForSession( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, ) -> bool
where Self: Sized + Message,

Available on crate feature UIDragSession only.
Source

unsafe fn dragInteraction_sessionDidMove( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, )
where Self: Sized + Message,

Available on crate feature UIDragSession only.
Source

unsafe fn dragInteraction_session_willEndWithOperation( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, operation: UIDropOperation, )
where Self: Sized + Message,

Available on crate features UIDragSession and UIDropInteraction only.
Source

unsafe fn dragInteraction_session_didEndWithOperation( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, operation: UIDropOperation, )
where Self: Sized + Message,

Available on crate features UIDragSession and UIDropInteraction only.
Source

unsafe fn dragInteraction_sessionDidTransferItems( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, )
where Self: Sized + Message,

Available on crate feature UIDragSession only.
Source

unsafe fn dragInteraction_itemsForAddingToSession_withTouchAtPoint( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, point: CGPoint, ) -> Retained<NSArray<UIDragItem>>
where Self: Sized + Message,

Available on crate features UIDragItem and UIDragSession and objc2-core-foundation only.
Source

unsafe fn dragInteraction_sessionForAddingItems_withTouchAtPoint( &self, interaction: &UIDragInteraction, sessions: &NSArray<ProtocolObject<dyn UIDragSession>>, point: CGPoint, ) -> Option<Retained<ProtocolObject<dyn UIDragSession>>>
where Self: Sized + Message,

Available on crate features UIDragSession and objc2-core-foundation only.
Source

unsafe fn dragInteraction_session_willAddItems_forInteraction( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, items: &NSArray<UIDragItem>, adding_interaction: &UIDragInteraction, )
where Self: Sized + Message,

Available on crate features UIDragItem and UIDragSession only.
Source

unsafe fn dragInteraction_previewForCancellingItem_withDefault( &self, interaction: &UIDragInteraction, item: &UIDragItem, default_preview: &UITargetedDragPreview, ) -> Option<Retained<UITargetedDragPreview>>
where Self: Sized + Message,

Available on crate features UIDragItem and UITargetedDragPreview and UITargetedPreview only.
Source

unsafe fn dragInteraction_item_willAnimateCancelWithAnimator( &self, interaction: &UIDragInteraction, item: &UIDragItem, animator: &ProtocolObject<dyn UIDragAnimating>, )
where Self: Sized + Message,

Available on crate feature UIDragItem only.

Trait Implementations§

Source§

impl ProtocolType for dyn UIDragInteractionDelegate

Source§

const NAME: &'static str = "UIDragInteractionDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn UIDragInteractionDelegate

Implementations on Foreign Types§

Source§

impl<T> UIDragInteractionDelegate for ProtocolObject<T>

Implementors§