Skip to main content

UIViewControllerRestoration

Trait UIViewControllerRestoration 

Source
pub unsafe trait UIViewControllerRestoration: MainThreadOnly {
    // 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.
Expand description

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

coder possibly has further requirements.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIViewControllerRestoration

Source§

impl ProtocolType for dyn UIViewControllerRestoration

Source§

const NAME: &'static str = "UIViewControllerRestoration"

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> UIViewControllerRestoration for ProtocolObject<T>

Implementors§