Skip to main content

UIDragInteractionDelegate

Trait UIDragInteractionDelegate 

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

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

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

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

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

Available on crate feature UIDragSession only.
Source

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

Available on crate feature UIDragSession only.
Source

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

Available on crate feature UIDragSession only.
Source

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

Available on crate feature UIDragSession only.
Source

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

Available on crate feature UIDragSession only.
Source

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

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

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

Available on crate feature UIDragSession only.
Source

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

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

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 objc2-core-foundation and UIDragSession only.
Source

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

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

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<T> ImplementedBy<T> for dyn UIDragInteractionDelegate

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> UIDragInteractionDelegate for ProtocolObject<T>

Implementors§