UITextDragDelegate

Trait UITextDragDelegate 

Source
pub unsafe trait UITextDragDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn textDraggableView_itemsForDrag(
        &self,
        text_draggable_view: &UIView,
        drag_request: &ProtocolObject<dyn UITextDragRequest>,
    ) -> Retained<NSArray<UIDragItem>>
       where Self: Sized + Message { ... }
    unsafe fn textDraggableView_dragPreviewForLiftingItem_session(
        &self,
        text_draggable_view: &UIView,
        item: &UIDragItem,
        session: &ProtocolObject<dyn UIDragSession>,
    ) -> Option<Retained<UITargetedDragPreview>>
       where Self: Sized + Message { ... }
    unsafe fn textDraggableView_willAnimateLiftWithAnimator_session(
        &self,
        text_draggable_view: &UIView,
        animator: &ProtocolObject<dyn UIDragAnimating>,
        session: &ProtocolObject<dyn UIDragSession>,
    )
       where Self: Sized + Message { ... }
    unsafe fn textDraggableView_dragSessionWillBegin(
        &self,
        text_draggable_view: &UIView,
        session: &ProtocolObject<dyn UIDragSession>,
    )
       where Self: Sized + Message { ... }
    unsafe fn textDraggableView_dragSessionDidEnd_withOperation(
        &self,
        text_draggable_view: &UIView,
        session: &ProtocolObject<dyn UIDragSession>,
        operation: UIDropOperation,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UITextDragging only.
Expand description

Provided Methods§

Source

unsafe fn textDraggableView_itemsForDrag( &self, text_draggable_view: &UIView, drag_request: &ProtocolObject<dyn UITextDragRequest>, ) -> Retained<NSArray<UIDragItem>>
where Self: Sized + Message,

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

unsafe fn textDraggableView_dragPreviewForLiftingItem_session( &self, text_draggable_view: &UIView, item: &UIDragItem, session: &ProtocolObject<dyn UIDragSession>, ) -> Option<Retained<UITargetedDragPreview>>
where Self: Sized + Message,

Available on crate features UIDragItem and UIDragSession and UIResponder and UITargetedDragPreview and UITargetedPreview and UITextInput and UITextInputTraits and UIView only.
Source

unsafe fn textDraggableView_willAnimateLiftWithAnimator_session( &self, text_draggable_view: &UIView, animator: &ProtocolObject<dyn UIDragAnimating>, session: &ProtocolObject<dyn UIDragSession>, )
where Self: Sized + Message,

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

unsafe fn textDraggableView_dragSessionWillBegin( &self, text_draggable_view: &UIView, session: &ProtocolObject<dyn UIDragSession>, )
where Self: Sized + Message,

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

unsafe fn textDraggableView_dragSessionDidEnd_withOperation( &self, text_draggable_view: &UIView, session: &ProtocolObject<dyn UIDragSession>, operation: UIDropOperation, )
where Self: Sized + Message,

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

Trait Implementations§

Source§

impl ProtocolType for dyn UITextDragDelegate

Source§

const NAME: &'static str = "UITextDragDelegate"

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 UITextDragDelegate

Implementations on Foreign Types§

Source§

impl<T> UITextDragDelegate for ProtocolObject<T>

Implementors§