pub unsafe trait UIViewControllerPreviewing: NSObjectProtocol + MainThreadOnly {
// 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.Expand description
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.
Available on crate feature
objc2-core-foundation
only.Sourceunsafe fn setSourceRect(&self, source_rect: CGRect)
👎Deprecated: UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.Available on crate feature objc2-core-foundation
only.
unsafe fn setSourceRect(&self, source_rect: CGRect)
objc2-core-foundation
only.Setter for sourceRect
.