Skip to main content

UIViewControllerPreviewingDelegate

Trait UIViewControllerPreviewingDelegate 

Source
pub unsafe trait UIViewControllerPreviewingDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn previewingContext_viewControllerForLocation(
        &self,
        previewing_context: &ProtocolObject<dyn UIViewControllerPreviewing>,
        location: CGPoint,
    ) -> Option<Retained<UIViewController>>
       where Self: Sized + Message { ... }
    fn previewingContext_commitViewController(
        &self,
        previewing_context: &ProtocolObject<dyn UIViewControllerPreviewing>,
        view_controller_to_commit: &UIViewController,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UIViewController only.
Expand description

Provided Methods§

Source

fn previewingContext_viewControllerForLocation( &self, previewing_context: &ProtocolObject<dyn UIViewControllerPreviewing>, location: CGPoint, ) -> Option<Retained<UIViewController>>
where Self: Sized + Message,

👎Deprecated:

UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.

Available on crate features objc2-core-foundation and UIResponder only.
Source

fn previewingContext_commitViewController( &self, previewing_context: &ProtocolObject<dyn UIViewControllerPreviewing>, view_controller_to_commit: &UIViewController, )
where Self: Sized + Message,

👎Deprecated:

UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.

Available on crate feature UIResponder only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIViewControllerPreviewingDelegate

Source§

impl ProtocolType for dyn UIViewControllerPreviewingDelegate

Source§

const NAME: &'static str = "UIViewControllerPreviewingDelegate"

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> UIViewControllerPreviewingDelegate for ProtocolObject<T>

Implementors§