Trait objc2_ui_kit::UIViewControllerPreviewing

source ·
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§

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.
source

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

👎Deprecated: UIViewControllerPreviewing is deprecated. Please use UIContextMenuInteraction.

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