Trait UIDropInteractionDelegate

Source
pub unsafe trait UIDropInteractionDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn dropInteraction_canHandleSession(
        &self,
        interaction: &UIDropInteraction,
        session: &ProtocolObject<dyn UIDropSession>,
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn dropInteraction_sessionDidEnter(
        &self,
        interaction: &UIDropInteraction,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
    unsafe fn dropInteraction_sessionDidUpdate(
        &self,
        interaction: &UIDropInteraction,
        session: &ProtocolObject<dyn UIDropSession>,
    ) -> Retained<UIDropProposal>
       where Self: Sized + Message { ... }
    unsafe fn dropInteraction_sessionDidExit(
        &self,
        interaction: &UIDropInteraction,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
    unsafe fn dropInteraction_performDrop(
        &self,
        interaction: &UIDropInteraction,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
    unsafe fn dropInteraction_concludeDrop(
        &self,
        interaction: &UIDropInteraction,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
    unsafe fn dropInteraction_sessionDidEnd(
        &self,
        interaction: &UIDropInteraction,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
    unsafe fn dropInteraction_previewForDroppingItem_withDefault(
        &self,
        interaction: &UIDropInteraction,
        item: &UIDragItem,
        default_preview: &UITargetedDragPreview,
    ) -> Option<Retained<UITargetedDragPreview>>
       where Self: Sized + Message { ... }
    unsafe fn dropInteraction_item_willAnimateDropWithAnimator(
        &self,
        interaction: &UIDropInteraction,
        item: &UIDragItem,
        animator: &ProtocolObject<dyn UIDragAnimating>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UIDropInteraction only.
Expand description

Provided Methods§

Source

unsafe fn dropInteraction_canHandleSession( &self, interaction: &UIDropInteraction, session: &ProtocolObject<dyn UIDropSession>, ) -> bool
where Self: Sized + Message,

Available on crate feature UIDragSession only.
Source

unsafe fn dropInteraction_sessionDidEnter( &self, interaction: &UIDropInteraction, session: &ProtocolObject<dyn UIDropSession>, )
where Self: Sized + Message,

Available on crate feature UIDragSession only.
Source

unsafe fn dropInteraction_sessionDidUpdate( &self, interaction: &UIDropInteraction, session: &ProtocolObject<dyn UIDropSession>, ) -> Retained<UIDropProposal>
where Self: Sized + Message,

Available on crate feature UIDragSession only.
Source

unsafe fn dropInteraction_sessionDidExit( &self, interaction: &UIDropInteraction, session: &ProtocolObject<dyn UIDropSession>, )
where Self: Sized + Message,

Available on crate feature UIDragSession only.
Source

unsafe fn dropInteraction_performDrop( &self, interaction: &UIDropInteraction, session: &ProtocolObject<dyn UIDropSession>, )
where Self: Sized + Message,

Available on crate feature UIDragSession only.
Source

unsafe fn dropInteraction_concludeDrop( &self, interaction: &UIDropInteraction, session: &ProtocolObject<dyn UIDropSession>, )
where Self: Sized + Message,

Available on crate feature UIDragSession only.
Source

unsafe fn dropInteraction_sessionDidEnd( &self, interaction: &UIDropInteraction, session: &ProtocolObject<dyn UIDropSession>, )
where Self: Sized + Message,

Available on crate feature UIDragSession only.
Source

unsafe fn dropInteraction_previewForDroppingItem_withDefault( &self, interaction: &UIDropInteraction, 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 dropInteraction_item_willAnimateDropWithAnimator( &self, interaction: &UIDropInteraction, item: &UIDragItem, animator: &ProtocolObject<dyn UIDragAnimating>, )
where Self: Sized + Message,

Available on crate features UIDragInteraction and UIDragItem only.

Trait Implementations§

Source§

impl ProtocolType for dyn UIDropInteractionDelegate

Source§

const NAME: &'static str = "UIDropInteractionDelegate"

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 UIDropInteractionDelegate

Implementations on Foreign Types§

Source§

impl<T> UIDropInteractionDelegate for ProtocolObject<T>

Implementors§