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§
fn previewingContext_viewControllerForLocation( &self, previewing_context: &ProtocolObject<dyn UIViewControllerPreviewing>, location: CGPoint, ) -> Option<Retained<UIViewController>>
👎Deprecated:
UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.
Available on crate features
objc2-core-foundation and UIResponder only.fn previewingContext_commitViewController( &self, previewing_context: &ProtocolObject<dyn UIViewControllerPreviewing>, view_controller_to_commit: &UIViewController, )
👎Deprecated:
UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.
Available on crate feature
UIResponder only.Trait Implementations§
impl<T> ImplementedBy<T> for dyn UIViewControllerPreviewingDelegate
Source§impl ProtocolType for dyn UIViewControllerPreviewingDelegate
impl ProtocolType for dyn UIViewControllerPreviewingDelegate
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".