Trait objc2_ui_kit::UIDropInteractionDelegate

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

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