Skip to main content

UITextDragRequest

Trait UITextDragRequest 

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

Provided Methods§

Source

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

Available on crate feature UITextInput only.
Source

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

Available on crate feature UIDragItem only.
Source

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

Available on crate feature UIDragItem only.
Source

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

Source

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

Available on crate feature UIDragSession only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UITextDragRequest

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> UITextDragRequest for ProtocolObject<T>

Implementors§