Skip to main content

UITextDocumentProxy

Trait UITextDocumentProxy 

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

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UITextDocumentProxy

Source§

impl ProtocolType for dyn UITextDocumentProxy

Source§

const NAME: &'static str = "UITextDocumentProxy"

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

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> UITextDocumentProxy for ProtocolObject<T>

Implementors§