Trait UIAdaptivePresentationControllerDelegate

Source
pub unsafe trait UIAdaptivePresentationControllerDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn adaptivePresentationStyleForPresentationController(
        &self,
        controller: &UIPresentationController,
    ) -> UIModalPresentationStyle
       where Self: Sized + Message { ... }
    unsafe fn adaptivePresentationStyleForPresentationController_traitCollection(
        &self,
        controller: &UIPresentationController,
        trait_collection: &UITraitCollection,
    ) -> UIModalPresentationStyle
       where Self: Sized + Message { ... }
    unsafe fn presentationController_prepareAdaptivePresentationController(
        &self,
        presentation_controller: &UIPresentationController,
        adaptive_presentation_controller: &UIPresentationController,
    )
       where Self: Sized + Message { ... }
    unsafe fn presentationController_viewControllerForAdaptivePresentationStyle(
        &self,
        controller: &UIPresentationController,
        style: UIModalPresentationStyle,
    ) -> Option<Retained<UIViewController>>
       where Self: Sized + Message { ... }
    unsafe fn presentationController_willPresentWithAdaptiveStyle_transitionCoordinator(
        &self,
        presentation_controller: &UIPresentationController,
        style: UIModalPresentationStyle,
        transition_coordinator: Option<&ProtocolObject<dyn UIViewControllerTransitionCoordinator>>,
    )
       where Self: Sized + Message { ... }
    unsafe fn presentationControllerShouldDismiss(
        &self,
        presentation_controller: &UIPresentationController,
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn presentationControllerWillDismiss(
        &self,
        presentation_controller: &UIPresentationController,
    )
       where Self: Sized + Message { ... }
    unsafe fn presentationControllerDidDismiss(
        &self,
        presentation_controller: &UIPresentationController,
    )
       where Self: Sized + Message { ... }
    unsafe fn presentationControllerDidAttemptToDismiss(
        &self,
        presentation_controller: &UIPresentationController,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UIPresentationController only.
Expand description

Provided Methods§

Source

unsafe fn adaptivePresentationStyleForPresentationController( &self, controller: &UIPresentationController, ) -> UIModalPresentationStyle
where Self: Sized + Message,

Available on crate feature UIViewController only.
Source

unsafe fn adaptivePresentationStyleForPresentationController_traitCollection( &self, controller: &UIPresentationController, trait_collection: &UITraitCollection, ) -> UIModalPresentationStyle
where Self: Sized + Message,

Available on crate features UITraitCollection and UIViewController only.
Source

unsafe fn presentationController_prepareAdaptivePresentationController( &self, presentation_controller: &UIPresentationController, adaptive_presentation_controller: &UIPresentationController, )
where Self: Sized + Message,

Source

unsafe fn presentationController_viewControllerForAdaptivePresentationStyle( &self, controller: &UIPresentationController, style: UIModalPresentationStyle, ) -> Option<Retained<UIViewController>>
where Self: Sized + Message,

Available on crate features UIResponder and UIViewController only.
Source

unsafe fn presentationController_willPresentWithAdaptiveStyle_transitionCoordinator( &self, presentation_controller: &UIPresentationController, style: UIModalPresentationStyle, transition_coordinator: Option<&ProtocolObject<dyn UIViewControllerTransitionCoordinator>>, )
where Self: Sized + Message,

Available on crate features UIViewController and UIViewControllerTransitionCoordinator only.
Source

unsafe fn presentationControllerShouldDismiss( &self, presentation_controller: &UIPresentationController, ) -> bool
where Self: Sized + Message,

Source

unsafe fn presentationControllerWillDismiss( &self, presentation_controller: &UIPresentationController, )
where Self: Sized + Message,

Source

unsafe fn presentationControllerDidDismiss( &self, presentation_controller: &UIPresentationController, )
where Self: Sized + Message,

Source

unsafe fn presentationControllerDidAttemptToDismiss( &self, presentation_controller: &UIPresentationController, )
where Self: Sized + Message,

Trait Implementations§

Source§

impl ProtocolType for dyn UIAdaptivePresentationControllerDelegate

Source§

const NAME: &'static str = "UIAdaptivePresentationControllerDelegate"

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 UIAdaptivePresentationControllerDelegate

Implementations on Foreign Types§

Source§

impl<T> UIAdaptivePresentationControllerDelegate for ProtocolObject<T>

Implementors§