Trait UIViewControllerPreviewing

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

Source

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

👎Deprecated: UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.
Available on crate feature UIGestureRecognizer only.
Source

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

👎Deprecated: UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.
Source

unsafe 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

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

👎Deprecated: UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.
Available on crate feature objc2-core-foundation only.
Source

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

impl<T> ImplementedBy<T> for dyn UIViewControllerPreviewing

Implementations on Foreign Types§

Source§

impl<T> UIViewControllerPreviewing for ProtocolObject<T>

Implementors§