Trait objc2_ui_kit::UITextFieldDelegate

source ·
pub unsafe trait UITextFieldDelegate: NSObjectProtocol + IsMainThreadOnly {
    // Provided methods
    unsafe fn textFieldShouldBeginEditing(
        &self,
        text_field: &UITextField
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn textFieldDidBeginEditing(&self, text_field: &UITextField)
       where Self: Sized + Message { ... }
    unsafe fn textFieldShouldEndEditing(&self, text_field: &UITextField) -> bool
       where Self: Sized + Message { ... }
    unsafe fn textFieldDidEndEditing(&self, text_field: &UITextField)
       where Self: Sized + Message { ... }
    unsafe fn textFieldDidEndEditing_reason(
        &self,
        text_field: &UITextField,
        reason: UITextFieldDidEndEditingReason
    )
       where Self: Sized + Message { ... }
    unsafe fn textField_shouldChangeCharactersInRange_replacementString(
        &self,
        text_field: &UITextField,
        range: NSRange,
        string: &NSString
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn textFieldDidChangeSelection(&self, text_field: &UITextField)
       where Self: Sized + Message { ... }
    unsafe fn textFieldShouldClear(&self, text_field: &UITextField) -> bool
       where Self: Sized + Message { ... }
    unsafe fn textFieldShouldReturn(&self, text_field: &UITextField) -> bool
       where Self: Sized + Message { ... }
    unsafe fn textField_editMenuForCharactersInRange_suggestedActions(
        &self,
        text_field: &UITextField,
        range: NSRange,
        suggested_actions: &NSArray<UIMenuElement>
    ) -> Option<Retained<UIMenu>>
       where Self: Sized + Message { ... }
    unsafe fn textField_willPresentEditMenuWithAnimator(
        &self,
        text_field: &UITextField,
        animator: &ProtocolObject<dyn UIEditMenuInteractionAnimating>
    )
       where Self: Sized + Message { ... }
    unsafe fn textField_willDismissEditMenuWithAnimator(
        &self,
        text_field: &UITextField,
        animator: &ProtocolObject<dyn UIEditMenuInteractionAnimating>
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UITextField only.

Provided Methods§

source

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

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

unsafe fn textFieldDidBeginEditing(&self, text_field: &UITextField)
where Self: Sized + Message,

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

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

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

unsafe fn textFieldDidEndEditing(&self, text_field: &UITextField)
where Self: Sized + Message,

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

unsafe fn textFieldDidEndEditing_reason( &self, text_field: &UITextField, reason: UITextFieldDidEndEditingReason )
where Self: Sized + Message,

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

unsafe fn textField_shouldChangeCharactersInRange_replacementString( &self, text_field: &UITextField, range: NSRange, string: &NSString ) -> bool
where Self: Sized + Message,

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

unsafe fn textFieldDidChangeSelection(&self, text_field: &UITextField)
where Self: Sized + Message,

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

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

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

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

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

unsafe fn textField_editMenuForCharactersInRange_suggestedActions( &self, text_field: &UITextField, range: NSRange, suggested_actions: &NSArray<UIMenuElement> ) -> Option<Retained<UIMenu>>
where Self: Sized + Message,

Available on crate features UIControl and UIMenu and UIMenuElement and UIResponder and UIView only.
source

unsafe fn textField_willPresentEditMenuWithAnimator( &self, text_field: &UITextField, animator: &ProtocolObject<dyn UIEditMenuInteractionAnimating> )
where Self: Sized + Message,

Available on crate features UIControl and UIEditMenuInteraction and UIResponder and UIView only.
source

unsafe fn textField_willDismissEditMenuWithAnimator( &self, text_field: &UITextField, animator: &ProtocolObject<dyn UIEditMenuInteractionAnimating> )
where Self: Sized + Message,

Available on crate features UIControl and UIEditMenuInteraction and UIResponder and UIView only.

Trait Implementations§

source§

impl ProtocolType for dyn UITextFieldDelegate

source§

const NAME: &'static str = "UITextFieldDelegate"

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 UITextFieldDelegate

Implementations on Foreign Types§

source§

impl<T> UITextFieldDelegate for ProtocolObject<T>

Implementors§