Trait objc2_ui_kit::UITextDocumentProxy
source · pub unsafe trait UITextDocumentProxy: UIKeyInput + IsMainThreadOnly {
// Provided methods
unsafe fn documentContextBeforeInput(&self) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
unsafe fn documentContextAfterInput(&self) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
unsafe fn selectedText(&self) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
unsafe fn documentInputMode(&self) -> Option<Retained<UITextInputMode>>
where Self: Sized + Message { ... }
unsafe fn documentIdentifier(&self) -> Retained<NSUUID>
where Self: Sized + Message { ... }
unsafe fn adjustTextPositionByCharacterOffset(&self, offset: NSInteger)
where Self: Sized + Message { ... }
unsafe fn setMarkedText_selectedRange(
&self,
marked_text: &NSString,
selected_range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn unmarkText(&self)
where Self: Sized + Message { ... }
}
Available on crate features
UIInputViewController
and UITextInput
and UITextInputTraits
only.