pub unsafe trait UIViewControllerPreviewing: NSObjectProtocol + MainThreadOnly {
// Provided methods
fn previewingGestureRecognizerForFailureRelationship(
&self,
) -> Retained<UIGestureRecognizer>
where Self: Sized + Message { ... }
fn delegate(
&self,
) -> Retained<ProtocolObject<dyn UIViewControllerPreviewingDelegate>>
where Self: Sized + Message { ... }
fn sourceView(&self) -> Retained<UIView>
where Self: Sized + Message { ... }
fn sourceRect(&self) -> CGRect
where Self: Sized + Message { ... }
fn setSourceRect(&self, source_rect: CGRect)
where Self: Sized + Message { ... }
}Available on crate feature
UIViewController only.Expand description
Provided Methods§
fn previewingGestureRecognizerForFailureRelationship( &self, ) -> Retained<UIGestureRecognizer>
👎Deprecated:
UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.
Available on crate feature
UIGestureRecognizer only.fn delegate( &self, ) -> Retained<ProtocolObject<dyn UIViewControllerPreviewingDelegate>>
👎Deprecated:
UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.
fn sourceView(&self) -> Retained<UIView>
👎Deprecated:
UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.
Available on crate features
UIResponder and UIView only.fn sourceRect(&self) -> CGRect
👎Deprecated:
UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.
Available on crate feature
objc2-core-foundation only.Sourcefn setSourceRect(&self, source_rect: CGRect)
👎Deprecated: UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.
Available on crate feature objc2-core-foundation only.
fn setSourceRect(&self, source_rect: CGRect)
UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.
objc2-core-foundation only.Setter for sourceRect.
Trait Implementations§
Source§impl ProtocolType for dyn UIViewControllerPreviewing
impl ProtocolType for dyn UIViewControllerPreviewing
impl<T> ImplementedBy<T> for dyn UIViewControllerPreviewing
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".