Skip to main content

UITextDroppable

Trait UITextDroppable 

Source
pub unsafe trait UITextDroppable:
    UITextInput
    + UITextPasteConfigurationSupporting
    + MainThreadOnly {
    // Provided methods
    fn textDropDelegate(
        &self,
    ) -> Option<Retained<ProtocolObject<dyn UITextDropDelegate>>>
       where Self: Sized + Message { ... }
    fn setTextDropDelegate(
        &self,
        text_drop_delegate: Option<&ProtocolObject<dyn UITextDropDelegate>>,
    )
       where Self: Sized + Message { ... }
    fn textDropInteraction(&self) -> Option<Retained<UIDropInteraction>>
       where Self: Sized + Message { ... }
    fn isTextDropActive(&self) -> bool
       where Self: Sized + Message { ... }
}
Available on crate features UIPasteConfigurationSupporting and UITextDropping and UITextInput and UITextInputTraits and UITextPasteConfigurationSupporting only.
Expand description

Provided Methods§

Source

fn textDropDelegate( &self, ) -> Option<Retained<ProtocolObject<dyn UITextDropDelegate>>>
where Self: Sized + Message,

Source

fn setTextDropDelegate( &self, text_drop_delegate: Option<&ProtocolObject<dyn UITextDropDelegate>>, )
where Self: Sized + Message,

Setter for textDropDelegate.

This is a weak property.

Source

fn textDropInteraction(&self) -> Option<Retained<UIDropInteraction>>
where Self: Sized + Message,

Available on crate feature UIDropInteraction only.
Source

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

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UITextDroppable

Source§

impl ProtocolType for dyn UITextDroppable

Source§

const NAME: &'static str = "UITextDroppable"

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> UITextDroppable for ProtocolObject<T>
where T: ?Sized + UITextDroppable,

Implementors§

Source§

impl UITextDroppable for UITextField

Available on crate feature UITextField only.
Source§

impl UITextDroppable for UITextView

Available on crate feature UITextView only.