Trait objc2_ui_kit::UIViewControllerRestoration

source ·
pub unsafe trait UIViewControllerRestoration: IsMainThreadOnly {
    // Provided method
    unsafe fn viewControllerWithRestorationIdentifierPath_coder(
        identifier_components: &NSArray<NSString>,
        coder: &NSCoder,
        mtm: MainThreadMarker
    ) -> Option<Retained<UIViewController>>
       where Self: Sized + ClassType { ... }
}
Available on crate feature UIStateRestoration only.

Provided Methods§

source

unsafe fn viewControllerWithRestorationIdentifierPath_coder( identifier_components: &NSArray<NSString>, coder: &NSCoder, mtm: MainThreadMarker ) -> Option<Retained<UIViewController>>
where Self: Sized + ClassType,

Available on crate features UIResponder and UIViewController only.

Trait Implementations§

source§

impl ProtocolType for dyn UIViewControllerRestoration

source§

const NAME: &'static str = "UIViewControllerRestoration"

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 UIViewControllerRestoration

Implementations on Foreign Types§

source§

impl<T> UIViewControllerRestoration for ProtocolObject<T>

Implementors§