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§
unsafe fn restorationParent( &self, ) -> Option<Retained<ProtocolObject<dyn UIStateRestoring>>>
unsafe fn objectRestorationClass(&self) -> Option<&'static AnyClass>
unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
unsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)
unsafe fn applicationFinishedRestoringState(&self)
Trait Implementations§
Source§impl ProtocolType for dyn UIStateRestoring
impl ProtocolType for dyn UIStateRestoring
impl<T> ImplementedBy<T> for dyn UIStateRestoring
Implementations on Foreign Types§
impl<T> UIStateRestoring for ProtocolObject<T>where
T: ?Sized + UIStateRestoring,
Implementors§
impl UIStateRestoring for UIViewController
Available on crate feature
UIViewController
only.