Trait UIViewControllerPreviewingDelegate

Source
pub unsafe trait UIViewControllerPreviewingDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn previewingContext_viewControllerForLocation(
        &self,
        previewing_context: &ProtocolObject<dyn UIViewControllerPreviewing>,
        location: CGPoint,
    ) -> Option<Retained<UIViewController>>
       where Self: Sized + Message { ... }
    unsafe 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

unsafe 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 UIResponder and objc2-core-foundation only.
Source

unsafe 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 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
Source§

impl<T> ImplementedBy<T> for dyn UIViewControllerPreviewingDelegate

Implementations on Foreign Types§

Source§

impl<T> UIViewControllerPreviewingDelegate for ProtocolObject<T>

Implementors§