Trait UITextDocumentProxy

Source
pub unsafe trait UITextDocumentProxy: UIKeyInput + MainThreadOnly {
    // 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.
Expand description

Provided Methods§

Source

unsafe fn documentContextBeforeInput(&self) -> Option<Retained<NSString>>
where Self: Sized + Message,

Source

unsafe fn documentContextAfterInput(&self) -> Option<Retained<NSString>>
where Self: Sized + Message,

Source

unsafe fn selectedText(&self) -> Option<Retained<NSString>>
where Self: Sized + Message,

Source

unsafe fn documentInputMode(&self) -> Option<Retained<UITextInputMode>>
where Self: Sized + Message,

Source

unsafe fn documentIdentifier(&self) -> Retained<NSUUID>
where Self: Sized + Message,

Source

unsafe fn adjustTextPositionByCharacterOffset(&self, offset: NSInteger)
where Self: Sized + Message,

Source

unsafe fn setMarkedText_selectedRange( &self, marked_text: &NSString, selected_range: NSRange, )
where Self: Sized + Message,

Source

unsafe fn unmarkText(&self)
where Self: Sized + Message,

Trait Implementations§

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

impl<T> ImplementedBy<T> for dyn UITextDocumentProxy

Implementations on Foreign Types§

Source§

impl<T> UITextDocumentProxy for ProtocolObject<T>

Implementors§