Skip to main content

UIAdaptivePresentationControllerDelegate

Trait UIAdaptivePresentationControllerDelegate 

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

Provided Methods§

Source

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

Available on crate feature UIViewController only.
Source

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

Available on crate features UITraitCollection and UIViewController only.
Source

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

Source

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

Available on crate features UIResponder and UIViewController only.
Source

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

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

Source

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

Source

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

Source

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

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIAdaptivePresentationControllerDelegate

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> UIAdaptivePresentationControllerDelegate for ProtocolObject<T>

Implementors§