Trait objc2_ui_kit::UIKeyInput
source · pub unsafe trait UIKeyInput: UITextInputTraits + IsMainThreadOnly {
// 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.Provided Methods§
unsafe fn hasText(&self) -> bool
unsafe fn insertText(&self, text: &NSString)
unsafe fn deleteBackward(&self)
Trait Implementations§
source§impl ProtocolType for dyn UIKeyInput
impl ProtocolType for dyn UIKeyInput
impl<T> ImplementedBy<T> for dyn UIKeyInput
Implementations on Foreign Types§
impl<T> UIKeyInput for ProtocolObject<T>where
T: ?Sized + UIKeyInput,
Implementors§
impl UIKeyInput for UISearchTextField
Available on crate features
UIControl and UIResponder and UITextField and UIView and UISearchTextField only.impl UIKeyInput for UITextField
Available on crate features
UIControl and UIResponder and UIView and UITextField only.impl UIKeyInput for UITextView
Available on crate features
UIResponder and UIScrollView and UIView and UITextView only.