Skip to main content

UIViewControllerPreviewing

Trait UIViewControllerPreviewing 

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

Source

fn previewingGestureRecognizerForFailureRelationship( &self, ) -> Retained<UIGestureRecognizer>
where Self: Sized + Message,

👎Deprecated:

UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.

Available on crate feature UIGestureRecognizer only.
Source

fn delegate( &self, ) -> Retained<ProtocolObject<dyn UIViewControllerPreviewingDelegate>>
where Self: Sized + Message,

👎Deprecated:

UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.

Source

fn sourceView(&self) -> Retained<UIView>
where Self: Sized + Message,

👎Deprecated:

UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.

Available on crate features UIResponder and UIView only.
Source

fn sourceRect(&self) -> CGRect
where Self: Sized + Message,

👎Deprecated:

UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.

Available on crate feature objc2-core-foundation only.
Source

fn setSourceRect(&self, source_rect: CGRect)
where Self: Sized + Message,

👎Deprecated:

UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.

Available on crate feature objc2-core-foundation only.

Setter for sourceRect.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIViewControllerPreviewing

Source§

impl ProtocolType for dyn UIViewControllerPreviewing

Source§

const NAME: &'static str = "UIViewControllerPreviewing"

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> UIViewControllerPreviewing for ProtocolObject<T>

Implementors§