Skip to main content

UIKeyInput

Trait UIKeyInput 

Source
pub unsafe trait UIKeyInput: UITextInputTraits + MainThreadOnly {
    // Provided methods
    fn hasText(&self) -> bool
       where Self: Sized + Message { ... }
    fn insertText(&self, text: &NSString)
       where Self: Sized + Message { ... }
    fn deleteBackward(&self)
       where Self: Sized + Message { ... }
}
Available on crate features UITextInput and UITextInputTraits only.
Expand description

Provided Methods§

Source

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

Source

fn insertText(&self, text: &NSString)
where Self: Sized + Message,

Source

fn deleteBackward(&self)
where Self: Sized + Message,

Trait Implementations§

Source§

impl ProtocolType for dyn UIKeyInput

Source§

const NAME: &'static str = "UIKeyInput"

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
Source§

impl<T> ImplementedBy<T> for dyn UIKeyInput
where T: ?Sized + Message + UIKeyInput,

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

Implementors§

Source§

impl UIKeyInput for UISearchTextField

Available on crate feature UISearchTextField only.
Source§

impl UIKeyInput for UITextField

Available on crate feature UITextField only.
Source§

impl UIKeyInput for UITextView

Available on crate feature UITextView only.