UIPopoverPresentationControllerDelegate

Trait UIPopoverPresentationControllerDelegate 

Source
pub unsafe trait UIPopoverPresentationControllerDelegate: UIAdaptivePresentationControllerDelegate + MainThreadOnly {
    // Provided methods
    fn prepareForPopoverPresentation(
        &self,
        popover_presentation_controller: &UIPopoverPresentationController,
    )
       where Self: Sized + Message { ... }
    fn popoverPresentationControllerShouldDismissPopover(
        &self,
        popover_presentation_controller: &UIPopoverPresentationController,
    ) -> bool
       where Self: Sized + Message { ... }
    fn popoverPresentationControllerDidDismissPopover(
        &self,
        popover_presentation_controller: &UIPopoverPresentationController,
    )
       where Self: Sized + Message { ... }
    unsafe fn popoverPresentationController_willRepositionPopoverToRect_inView(
        &self,
        popover_presentation_controller: &UIPopoverPresentationController,
        rect: NonNull<CGRect>,
        view: &mut Retained<UIView>,
    )
       where Self: Sized + Message { ... }
}
Available on crate features UIPopoverPresentationController and UIPresentationController only.
Expand description

Provided Methods§

Source

fn prepareForPopoverPresentation( &self, popover_presentation_controller: &UIPopoverPresentationController, )
where Self: Sized + Message,

Source

fn popoverPresentationControllerShouldDismissPopover( &self, popover_presentation_controller: &UIPopoverPresentationController, ) -> bool
where Self: Sized + Message,

👎Deprecated
Source

fn popoverPresentationControllerDidDismissPopover( &self, popover_presentation_controller: &UIPopoverPresentationController, )
where Self: Sized + Message,

👎Deprecated
Source

unsafe fn popoverPresentationController_willRepositionPopoverToRect_inView( &self, popover_presentation_controller: &UIPopoverPresentationController, rect: NonNull<CGRect>, view: &mut Retained<UIView>, )
where Self: Sized + Message,

Available on crate features UIResponder and UIView and objc2-core-foundation only.
§Safety

rect must be a valid pointer.

Trait Implementations§

Source§

impl ProtocolType for dyn UIPopoverPresentationControllerDelegate

Source§

const NAME: &'static str = "UIPopoverPresentationControllerDelegate"

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 UIPopoverPresentationControllerDelegate

Implementations on Foreign Types§

Source§

impl<T> UIPopoverPresentationControllerDelegate for ProtocolObject<T>

Implementors§