Trait objc2_ui_kit::UITextDropDelegate

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

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