UITextDropDelegate

Trait UITextDropDelegate 

Source
pub unsafe trait UITextDropDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn textDroppableView_willBecomeEditableForDrop(
        &self,
        text_droppable_view: &UIView,
        drop: &ProtocolObject<dyn UITextDropRequest>,
    ) -> UITextDropEditability
       where Self: Sized + Message { ... }
    unsafe fn textDroppableView_proposalForDrop(
        &self,
        text_droppable_view: &UIView,
        drop: &ProtocolObject<dyn UITextDropRequest>,
    ) -> Retained<UITextDropProposal>
       where Self: Sized + Message { ... }
    unsafe fn textDroppableView_willPerformDrop(
        &self,
        text_droppable_view: &UIView,
        drop: &ProtocolObject<dyn UITextDropRequest>,
    )
       where Self: Sized + Message { ... }
    unsafe fn textDroppableView_previewForDroppingAllItemsWithDefault(
        &self,
        text_droppable_view: &UIView,
        default_preview: &UITargetedDragPreview,
    ) -> Option<Retained<UITargetedDragPreview>>
       where Self: Sized + Message { ... }
    unsafe fn textDroppableView_dropSessionDidEnter(
        &self,
        text_droppable_view: &UIView,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
    unsafe fn textDroppableView_dropSessionDidUpdate(
        &self,
        text_droppable_view: &UIView,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
    unsafe fn textDroppableView_dropSessionDidExit(
        &self,
        text_droppable_view: &UIView,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
    unsafe fn textDroppableView_dropSessionDidEnd(
        &self,
        text_droppable_view: &UIView,
        session: &ProtocolObject<dyn UIDropSession>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UITextDropping only.
Expand description

Provided Methods§

Source

unsafe fn textDroppableView_willBecomeEditableForDrop( &self, text_droppable_view: &UIView, drop: &ProtocolObject<dyn UITextDropRequest>, ) -> UITextDropEditability
where Self: Sized + Message,

Available on crate features UIPasteConfigurationSupporting and UIResponder and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.
Source

unsafe fn textDroppableView_proposalForDrop( &self, text_droppable_view: &UIView, drop: &ProtocolObject<dyn UITextDropRequest>, ) -> Retained<UITextDropProposal>
where Self: Sized + Message,

Available on crate features UIDropInteraction and UIPasteConfigurationSupporting and UIResponder and UITextDropProposal and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.
Source

unsafe fn textDroppableView_willPerformDrop( &self, text_droppable_view: &UIView, drop: &ProtocolObject<dyn UITextDropRequest>, )
where Self: Sized + Message,

Available on crate features UIPasteConfigurationSupporting and UIResponder and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.
Source

unsafe fn textDroppableView_previewForDroppingAllItemsWithDefault( &self, text_droppable_view: &UIView, default_preview: &UITargetedDragPreview, ) -> Option<Retained<UITargetedDragPreview>>
where Self: Sized + Message,

Available on crate features UIPasteConfigurationSupporting and UIResponder and UITargetedDragPreview and UITargetedPreview and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.
Source

unsafe fn textDroppableView_dropSessionDidEnter( &self, text_droppable_view: &UIView, session: &ProtocolObject<dyn UIDropSession>, )
where Self: Sized + Message,

Available on crate features UIDragSession and UIPasteConfigurationSupporting and UIResponder and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.
Source

unsafe fn textDroppableView_dropSessionDidUpdate( &self, text_droppable_view: &UIView, session: &ProtocolObject<dyn UIDropSession>, )
where Self: Sized + Message,

Available on crate features UIDragSession and UIPasteConfigurationSupporting and UIResponder and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.
Source

unsafe fn textDroppableView_dropSessionDidExit( &self, text_droppable_view: &UIView, session: &ProtocolObject<dyn UIDropSession>, )
where Self: Sized + Message,

Available on crate features UIDragSession and UIPasteConfigurationSupporting and UIResponder and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.
Source

unsafe fn textDroppableView_dropSessionDidEnd( &self, text_droppable_view: &UIView, session: &ProtocolObject<dyn UIDropSession>, )
where Self: Sized + Message,

Available on crate features UIDragSession and UIPasteConfigurationSupporting and UIResponder and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting and UIView only.

Trait Implementations§

Source§

impl ProtocolType for dyn UITextDropDelegate

Source§

const NAME: &'static str = "UITextDropDelegate"

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 UITextDropDelegate

Implementations on Foreign Types§

Source§

impl<T> UITextDropDelegate for ProtocolObject<T>

Implementors§