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§
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 features
UIResponder
and UIViewController
only.