Trait objc2_ui_kit::UIDragInteractionDelegate

source ·
pub unsafe trait UIDragInteractionDelegate: NSObjectProtocol + IsMainThreadOnly {
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.

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 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 feature UIDragSession 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.
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§