Trait UIStateRestoring

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

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. 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 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 feature UIViewController only.