Skip to main content

UITextInputDelegate

Trait UITextInputDelegate 

Source
pub unsafe trait UITextInputDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn selectionWillChange(
        &self,
        text_input: Option<&ProtocolObject<dyn UITextInput>>,
    )
       where Self: Sized + Message { ... }
    fn selectionDidChange(
        &self,
        text_input: Option<&ProtocolObject<dyn UITextInput>>,
    )
       where Self: Sized + Message { ... }
    fn textWillChange(
        &self,
        text_input: Option<&ProtocolObject<dyn UITextInput>>,
    )
       where Self: Sized + Message { ... }
    fn textDidChange(
        &self,
        text_input: Option<&ProtocolObject<dyn UITextInput>>,
    )
       where Self: Sized + Message { ... }
    fn conversationContext_didChange(
        &self,
        context: Option<&UIConversationContext>,
        text_input: Option<&ProtocolObject<dyn UITextInput>>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UITextInput only.
Expand description

Provided Methods§

Source

fn selectionWillChange( &self, text_input: Option<&ProtocolObject<dyn UITextInput>>, )
where Self: Sized + Message,

Available on crate feature UITextInputTraits only.
Source

fn selectionDidChange( &self, text_input: Option<&ProtocolObject<dyn UITextInput>>, )
where Self: Sized + Message,

Available on crate feature UITextInputTraits only.
Source

fn textWillChange(&self, text_input: Option<&ProtocolObject<dyn UITextInput>>)
where Self: Sized + Message,

Available on crate feature UITextInputTraits only.
Source

fn textDidChange(&self, text_input: Option<&ProtocolObject<dyn UITextInput>>)
where Self: Sized + Message,

Available on crate feature UITextInputTraits only.
Source

fn conversationContext_didChange( &self, context: Option<&UIConversationContext>, text_input: Option<&ProtocolObject<dyn UITextInput>>, )
where Self: Sized + Message,

Available on crate features UIConversationContext and UITextInputTraits only.

Tells the input delegate when text has changed in the input object for a conversation.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UITextInputDelegate

Source§

impl ProtocolType for dyn UITextInputDelegate

Source§

const NAME: &'static str = "UITextInputDelegate"

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> UITextInputDelegate for ProtocolObject<T>

Implementors§

Source§

impl UITextInputDelegate for UIInputViewController

Available on crate feature UIInputViewController only.