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§
unsafe fn dragInteraction_itemsForBeginningSession( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession> ) -> Retained<NSArray<UIDragItem>>
Available on crate features
UIDragItem
and UIDragSession
only.unsafe 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.unsafe fn dragInteraction_willAnimateLiftWithAnimator_session( &self, interaction: &UIDragInteraction, animator: &ProtocolObject<dyn UIDragAnimating>, session: &ProtocolObject<dyn UIDragSession> )
Available on crate feature
UIDragSession
only.unsafe fn dragInteraction_sessionWillBegin( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession> )
Available on crate feature
UIDragSession
only.unsafe fn dragInteraction_sessionAllowsMoveOperation( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession> ) -> bool
Available on crate feature
UIDragSession
only.unsafe fn dragInteraction_sessionIsRestrictedToDraggingApplication( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession> ) -> bool
Available on crate feature
UIDragSession
only.unsafe fn dragInteraction_prefersFullSizePreviewsForSession( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession> ) -> bool
Available on crate feature
UIDragSession
only.unsafe fn dragInteraction_sessionDidMove( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession> )
Available on crate feature
UIDragSession
only.unsafe fn dragInteraction_session_willEndWithOperation( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, operation: UIDropOperation )
Available on crate features
UIDragSession
and UIDropInteraction
only.unsafe fn dragInteraction_session_didEndWithOperation( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, operation: UIDropOperation )
Available on crate features
UIDragSession
and UIDropInteraction
only.unsafe fn dragInteraction_sessionDidTransferItems( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession> )
Available on crate feature
UIDragSession
only.unsafe fn dragInteraction_itemsForAddingToSession_withTouchAtPoint( &self, interaction: &UIDragInteraction, session: &ProtocolObject<dyn UIDragSession>, point: CGPoint ) -> Retained<NSArray<UIDragItem>>
Available on crate features
UIDragItem
and UIDragSession
only.unsafe fn dragInteraction_sessionForAddingItems_withTouchAtPoint( &self, interaction: &UIDragInteraction, sessions: &NSArray<ProtocolObject<dyn UIDragSession>>, point: CGPoint ) -> Option<Retained<ProtocolObject<dyn UIDragSession>>>
Available on crate feature
UIDragSession
only.unsafe 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.unsafe 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.unsafe fn dragInteraction_item_willAnimateCancelWithAnimator( &self, interaction: &UIDragInteraction, item: &UIDragItem, animator: &ProtocolObject<dyn UIDragAnimating> )
Available on crate feature
UIDragItem
only.