UIFindInteractionDelegate

Trait UIFindInteractionDelegate 

Source
pub unsafe trait UIFindInteractionDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn findInteraction_sessionForView(
        &self,
        interaction: &UIFindInteraction,
        view: &UIView,
    ) -> Option<Retained<UIFindSession>>
       where Self: Sized + Message { ... }
    fn findInteraction_didBeginFindSession(
        &self,
        interaction: &UIFindInteraction,
        session: &UIFindSession,
    )
       where Self: Sized + Message { ... }
    fn findInteraction_didEndFindSession(
        &self,
        interaction: &UIFindInteraction,
        session: &UIFindSession,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UIFindInteraction only.
Expand description

Provided Methods§

Source

fn findInteraction_sessionForView( &self, interaction: &UIFindInteraction, view: &UIView, ) -> Option<Retained<UIFindSession>>
where Self: Sized + Message,

Available on crate features UIFindSession and UIResponder and UIView only.

Called when a find session is requested to begin by the user. Return an instance of a UIFindSession implementation to allow the find session to begin, otherwise return nil to prevent the system find panel from appearing.

Source

fn findInteraction_didBeginFindSession( &self, interaction: &UIFindInteraction, session: &UIFindSession, )
where Self: Sized + Message,

Available on crate feature UIFindSession only.

Called when the search operation begins (and the system search UI appears). This would be a good time to decorate your view to indicate that a search operation is about to occur. System text elements will apply a dimming view around all non-highlighted search results, for instance.

Source

fn findInteraction_didEndFindSession( &self, interaction: &UIFindInteraction, session: &UIFindSession, )
where Self: Sized + Message,

Available on crate feature UIFindSession only.

Called when the current search session has changed or ended. This would be a good time to remove all decorations applied to found search results, and any decorations added when the search operation began (such as a dimming view).

Trait Implementations§

Source§

impl ProtocolType for dyn UIFindInteractionDelegate

Source§

const NAME: &'static str = "UIFindInteractionDelegate"

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 UIFindInteractionDelegate

Implementations on Foreign Types§

Source§

impl<T> UIFindInteractionDelegate for ProtocolObject<T>

Implementors§

Source§

impl UIFindInteractionDelegate for UITextView

Available on crate feature UITextView only.