UITextSelectionDisplayInteractionDelegate

Trait UITextSelectionDisplayInteractionDelegate 

Source
pub unsafe trait UITextSelectionDisplayInteractionDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided method
    unsafe fn selectionContainerViewBelowTextForSelectionDisplayInteraction(
        &self,
        interaction: &UITextSelectionDisplayInteraction,
    ) -> Option<Retained<UIView>>
       where Self: Sized + Message { ... }
}
Available on crate feature UITextSelectionDisplayInteraction only.
Expand description

Provided Methods§

Source

unsafe fn selectionContainerViewBelowTextForSelectionDisplayInteraction( &self, interaction: &UITextSelectionDisplayInteraction, ) -> Option<Retained<UIView>>
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.

If different than the view that the interaction is installed onto, one can return a container view here for selection views that draw below text. Includes selection highlight view, etc. The default is assumed that all views are to be installed onto the interaction’s view.

Trait Implementations§

Source§

impl ProtocolType for dyn UITextSelectionDisplayInteractionDelegate

Source§

const NAME: &'static str = "UITextSelectionDisplayInteractionDelegate"

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 UITextSelectionDisplayInteractionDelegate

Implementations on Foreign Types§

Source§

impl<T> UITextSelectionDisplayInteractionDelegate for ProtocolObject<T>

Implementors§