Skip to main content

UIDropInteractionDelegate

Trait UIDropInteractionDelegate 

Source
pub unsafe trait UIDropInteractionDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn dropInteraction_canHandleSession(
        &self,
        interaction: &UIDropInteraction,
        session: &ProtocolObject<dyn UIDropSession>,
    ) -> bool
       where Self: Sized + Message { ... }
    fn dropInteraction_sessionDidEnter(
        &self,
        interaction: &UIDropInteraction,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
    fn dropInteraction_sessionDidUpdate(
        &self,
        interaction: &UIDropInteraction,
        session: &ProtocolObject<dyn UIDropSession>,
    ) -> Retained<UIDropProposal>
       where Self: Sized + Message { ... }
    fn dropInteraction_sessionDidExit(
        &self,
        interaction: &UIDropInteraction,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
    fn dropInteraction_performDrop(
        &self,
        interaction: &UIDropInteraction,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
    fn dropInteraction_concludeDrop(
        &self,
        interaction: &UIDropInteraction,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
    fn dropInteraction_sessionDidEnd(
        &self,
        interaction: &UIDropInteraction,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
    fn dropInteraction_previewForDroppingItem_withDefault(
        &self,
        interaction: &UIDropInteraction,
        item: &UIDragItem,
        default_preview: &UITargetedDragPreview,
    ) -> Option<Retained<UITargetedDragPreview>>
       where Self: Sized + Message { ... }
    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

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

Available on crate feature UIDragSession only.
Source

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

Available on crate feature UIDragSession only.
Source

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

Available on crate feature UIDragSession only.
Source

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

Available on crate feature UIDragSession only.
Source

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

Available on crate feature UIDragSession only.
Source

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

Available on crate feature UIDragSession only.
Source

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

Available on crate feature UIDragSession only.
Source

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

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<T> ImplementedBy<T> for dyn UIDropInteractionDelegate

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> UIDropInteractionDelegate for ProtocolObject<T>

Implementors§