pub unsafe trait UIStateRestoring: NSObjectProtocol + MainThreadOnly {
// Provided methods
fn restorationParent(
&self,
) -> Option<Retained<ProtocolObject<dyn UIStateRestoring>>>
where Self: Sized + Message { ... }
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 { ... }
fn applicationFinishedRestoringState(&self)
where Self: Sized + Message { ... }
}Available on crate feature
UIStateRestoration only.Expand description
Provided Methods§
fn restorationParent( &self, ) -> Option<Retained<ProtocolObject<dyn UIStateRestoring>>>
fn objectRestorationClass(&self) -> Option<&'static AnyClass>
Sourceunsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
unsafe fn encodeRestorableStateWithCoder(&self, coder: &NSCoder)
§Safety
coder possibly has further requirements.
Sourceunsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)
unsafe fn decodeRestorableStateWithCoder(&self, coder: &NSCoder)
§Safety
coder possibly has further requirements.
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.