pub unsafe trait UIViewControllerPreviewing: NSObjectProtocol + IsMainThreadOnly {
// Provided methods
unsafe fn previewingGestureRecognizerForFailureRelationship(
&self
) -> Retained<UIGestureRecognizer>
where Self: Sized + Message { ... }
unsafe fn delegate(
&self
) -> Retained<ProtocolObject<dyn UIViewControllerPreviewingDelegate>>
where Self: Sized + Message { ... }
unsafe fn sourceView(&self) -> Retained<UIView>
where Self: Sized + Message { ... }
unsafe fn sourceRect(&self) -> CGRect
where Self: Sized + Message { ... }
unsafe fn setSourceRect(&self, source_rect: CGRect)
where Self: Sized + Message { ... }
}
Available on crate feature
UIViewController
only.Provided Methods§
unsafe fn previewingGestureRecognizerForFailureRelationship( &self ) -> Retained<UIGestureRecognizer>
👎Deprecated: UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.
Available on crate feature
UIGestureRecognizer
only.unsafe fn delegate( &self ) -> Retained<ProtocolObject<dyn UIViewControllerPreviewingDelegate>>
👎Deprecated: UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.
unsafe fn sourceView(&self) -> Retained<UIView>
👎Deprecated: UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.
Available on crate features
UIResponder
and UIView
only.unsafe fn sourceRect(&self) -> CGRect
👎Deprecated: UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.
unsafe fn setSourceRect(&self, source_rect: CGRect)
👎Deprecated: UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.