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§
Sourcefn findInteraction_sessionForView(
&self,
interaction: &UIFindInteraction,
view: &UIView,
) -> Option<Retained<UIFindSession>>
Available on crate features UIFindSession and UIResponder and UIView only.
fn findInteraction_sessionForView( &self, interaction: &UIFindInteraction, view: &UIView, ) -> Option<Retained<UIFindSession>>
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.
Sourcefn findInteraction_didBeginFindSession(
&self,
interaction: &UIFindInteraction,
session: &UIFindSession,
)
Available on crate feature UIFindSession only.
fn findInteraction_didBeginFindSession( &self, interaction: &UIFindInteraction, session: &UIFindSession, )
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.
Sourcefn findInteraction_didEndFindSession(
&self,
interaction: &UIFindInteraction,
session: &UIFindSession,
)
Available on crate feature UIFindSession only.
fn findInteraction_didEndFindSession( &self, interaction: &UIFindInteraction, session: &UIFindSession, )
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
impl ProtocolType for dyn UIFindInteractionDelegate
impl<T> ImplementedBy<T> for dyn UIFindInteractionDelegate
Implementations on Foreign Types§
impl<T> UIFindInteractionDelegate for ProtocolObject<T>where
T: ?Sized + UIFindInteractionDelegate,
Implementors§
impl UIFindInteractionDelegate for UITextView
Available on crate feature
UITextView only.