pub unsafe trait UITextDocumentProxy: UIKeyInput + MainThreadOnly {
// Provided methods
fn documentContextBeforeInput(&self) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
fn documentContextAfterInput(&self) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
fn selectedText(&self) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
fn documentInputMode(&self) -> Option<Retained<UITextInputMode>>
where Self: Sized + Message { ... }
fn documentIdentifier(&self) -> Retained<NSUUID>
where Self: Sized + Message { ... }
fn adjustTextPositionByCharacterOffset(&self, offset: NSInteger)
where Self: Sized + Message { ... }
fn setMarkedText_selectedRange(
&self,
marked_text: &NSString,
selected_range: NSRange,
)
where Self: Sized + Message { ... }
fn unmarkText(&self)
where Self: Sized + Message { ... }
}Available on crate features
UIInputViewController and UITextInput and UITextInputTraits only.Expand description
Provided Methods§
fn documentContextBeforeInput(&self) -> Option<Retained<NSString>>
fn documentContextAfterInput(&self) -> Option<Retained<NSString>>
fn selectedText(&self) -> Option<Retained<NSString>>
fn documentInputMode(&self) -> Option<Retained<UITextInputMode>>
fn documentIdentifier(&self) -> Retained<NSUUID>
fn adjustTextPositionByCharacterOffset(&self, offset: NSInteger)
fn setMarkedText_selectedRange( &self, marked_text: &NSString, selected_range: NSRange, )
fn unmarkText(&self)
Trait Implementations§
Source§impl ProtocolType for dyn UITextDocumentProxy
impl ProtocolType for dyn UITextDocumentProxy
impl<T> ImplementedBy<T> for dyn UITextDocumentProxy
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".