Trait objc2_ui_kit::UITextDragDelegate

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

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