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§
fn dragInteraction_itemsForBeginningSession( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, ) -> Retained<NSArray<UIDragItem>>
Available on crate features
UIDragItem and UIDragSession only.fn dragInteraction_previewForLiftingItem_session( &self, interaction: &UIDragInteraction, item: &UIDragItem, session: &ProtocolObject<dyn UIDragSession>, ) -> Option<Retained<UITargetedDragPreview>>
Available on crate features
UIDragItem and UIDragSession and UITargetedDragPreview and UITargetedPreview only.fn dragInteraction_willAnimateLiftWithAnimator_session( &self, interaction: &UIDragInteraction, animator: &ProtocolObject<dyn UIDragAnimating>, session: &ProtocolObject<dyn UIDragSession>, )
Available on crate feature
UIDragSession only.fn dragInteraction_sessionWillBegin( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, )
Available on crate feature
UIDragSession only.fn dragInteraction_sessionAllowsMoveOperation( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, ) -> bool
Available on crate feature
UIDragSession only.fn dragInteraction_sessionIsRestrictedToDraggingApplication( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, ) -> bool
Available on crate feature
UIDragSession only.fn dragInteraction_prefersFullSizePreviewsForSession( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, ) -> bool
Available on crate feature
UIDragSession only.fn dragInteraction_sessionDidMove( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, )
Available on crate feature
UIDragSession only.fn dragInteraction_session_willEndWithOperation( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, operation: UIDropOperation, )
Available on crate features
UIDragSession and UIDropInteraction only.fn dragInteraction_session_didEndWithOperation( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, operation: UIDropOperation, )
Available on crate features
UIDragSession and UIDropInteraction only.fn dragInteraction_sessionDidTransferItems( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, )
Available on crate feature
UIDragSession only.fn dragInteraction_itemsForAddingToSession_withTouchAtPoint( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, point: CGPoint, ) -> Retained<NSArray<UIDragItem>>
Available on crate features
objc2-core-foundation and UIDragItem and UIDragSession only.fn dragInteraction_sessionForAddingItems_withTouchAtPoint( &self, interaction: &UIDragInteraction, sessions: &NSArray<ProtocolObject<dyn UIDragSession>>, point: CGPoint, ) -> Option<Retained<ProtocolObject<dyn UIDragSession>>>
Available on crate features
objc2-core-foundation and UIDragSession only.fn dragInteraction_session_willAddItems_forInteraction( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, items: &NSArray<UIDragItem>, adding_interaction: &UIDragInteraction, )
Available on crate features
UIDragItem and UIDragSession only.fn dragInteraction_previewForCancellingItem_withDefault( &self, interaction: &UIDragInteraction, item: &UIDragItem, default_preview: &UITargetedDragPreview, ) -> Option<Retained<UITargetedDragPreview>>
Available on crate features
UIDragItem and UITargetedDragPreview and UITargetedPreview only.fn dragInteraction_item_willAnimateCancelWithAnimator( &self, interaction: &UIDragInteraction, item: &UIDragItem, animator: &ProtocolObject<dyn UIDragAnimating>, )
Available on crate feature
UIDragItem only.Trait Implementations§
impl<T> ImplementedBy<T> for dyn UIDragInteractionDelegate
Source§impl ProtocolType for dyn UIDragInteractionDelegate
impl ProtocolType for dyn UIDragInteractionDelegate
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".