Trait objc2_ui_kit::UIStateRestoring

source ·
pub unsafe trait UIStateRestoring: NSObjectProtocol + IsMainThreadOnly {
    // Provided methods
    unsafe fn restorationParent(
        &self
    ) -> Option<Retained<ProtocolObject<dyn UIStateRestoring>>>
       where Self: Sized + Message { ... }
    unsafe fn objectRestorationClass(&self) -> Option<&'static AnyClass>
       where Self: Sized + Message { ... }
    unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
       where Self: Sized + Message { ... }
    unsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)
       where Self: Sized + Message { ... }
    unsafe fn applicationFinishedRestoringState(&self)
       where Self: Sized + Message { ... }
}
Available on crate feature UIStateRestoration only.

Provided Methods§

source

unsafe fn restorationParent( &self ) -> Option<Retained<ProtocolObject<dyn UIStateRestoring>>>
where Self: Sized + Message,

source

unsafe fn objectRestorationClass(&self) -> Option<&'static AnyClass>
where Self: Sized + Message,

source

unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
where Self: Sized + Message,

source

unsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)
where Self: Sized + Message,

source

unsafe fn applicationFinishedRestoringState(&self)
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn UIStateRestoring

source§

const NAME: &'static str = "UIStateRestoring"

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 UIStateRestoring

Implementations on Foreign Types§

source§

impl<T> UIStateRestoring for ProtocolObject<T>
where T: ?Sized + UIStateRestoring,

Implementors§

source§

impl UIStateRestoring for UIViewController

Available on crate features UIResponder and UIViewController only.