Trait objc2_ui_kit::UITextDroppable

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

Provided Methods§

source

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

source

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

source

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

Available on crate feature UIDropInteraction only.
source

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

Trait Implementations§

source§

impl ProtocolType for dyn UITextDroppable

source§

const NAME: &'static str = "UITextDroppable"

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 UITextDroppable

Implementations on Foreign Types§

source§

impl<T> UITextDroppable for ProtocolObject<T>
where T: ?Sized + UITextDroppable,

Implementors§

source§

impl UITextDroppable for UITextField

Available on crate features UIControl and UIResponder and UIView and UITextField only.
source§

impl UITextDroppable for UITextView

Available on crate features UIResponder and UIScrollView and UIView and UITextView only.