Trait UIKeyInput

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

Provided Methods§

Source

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

Source

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

Source

unsafe 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,

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.