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§
fn prepareForPopoverPresentation( &self, popover_presentation_controller: &UIPopoverPresentationController, )
fn popoverPresentationControllerShouldDismissPopover( &self, popover_presentation_controller: &UIPopoverPresentationController, ) -> bool
👎Deprecated
fn popoverPresentationControllerDidDismissPopover( &self, popover_presentation_controller: &UIPopoverPresentationController, )
👎Deprecated
Sourceunsafe fn popoverPresentationController_willRepositionPopoverToRect_inView(
&self,
popover_presentation_controller: &UIPopoverPresentationController,
rect: NonNull<CGRect>,
view: &mut Retained<UIView>,
)
Available on crate features UIResponder and UIView and objc2-core-foundation only.
unsafe fn popoverPresentationController_willRepositionPopoverToRect_inView( &self, popover_presentation_controller: &UIPopoverPresentationController, rect: NonNull<CGRect>, view: &mut Retained<UIView>, )
UIResponder and UIView and objc2-core-foundation only.§Safety
rect must be a valid pointer.