Trait UITextDragRequest

Source
pub unsafe trait UITextDragRequest: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn dragRange(&self) -> Retained<UITextRange>
       where Self: Sized + Message { ... }
    unsafe fn suggestedItems(&self) -> Retained<NSArray<UIDragItem>>
       where Self: Sized + Message { ... }
    unsafe fn existingItems(&self) -> Retained<NSArray<UIDragItem>>
       where Self: Sized + Message { ... }
    unsafe fn isSelected(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn dragSession(&self) -> Retained<ProtocolObject<dyn UIDragSession>>
       where Self: Sized + Message { ... }
}
Available on crate feature UITextDragging only.
Expand description

Provided Methods§

Source

unsafe fn dragRange(&self) -> Retained<UITextRange>
where Self: Sized + Message,

Available on crate feature UITextInput only.
Source

unsafe fn suggestedItems(&self) -> Retained<NSArray<UIDragItem>>
where Self: Sized + Message,

Available on crate feature UIDragItem only.
Source

unsafe fn existingItems(&self) -> Retained<NSArray<UIDragItem>>
where Self: Sized + Message,

Available on crate feature UIDragItem only.
Source

unsafe fn isSelected(&self) -> bool
where Self: Sized + Message,

Source

unsafe fn dragSession(&self) -> Retained<ProtocolObject<dyn UIDragSession>>
where Self: Sized + Message,

Available on crate feature UIDragSession only.

Trait Implementations§

Source§

impl ProtocolType for dyn UITextDragRequest

Source§

const NAME: &'static str = "UITextDragRequest"

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 UITextDragRequest

Implementations on Foreign Types§

Source§

impl<T> UITextDragRequest for ProtocolObject<T>

Implementors§