Interface UIStateRestoring

    • Method Detail

      • applicationFinishedRestoringState

        default void applicationFinishedRestoringState()
        applicationFinishedRestoringState is called on all restored objects that implement the method *after* all other object decoding has been done (including the application delegate). This allows an object to complete setup after state restoration, knowing that all objects from the restoration archive have decoded their state.
      • decodeRestorableStateWithCoder

        default void decodeRestorableStateWithCoder​(NSCoder coder)
      • encodeRestorableStateWithCoder

        default void encodeRestorableStateWithCoder​(NSCoder coder)
        Methods to save and restore state for the object. If these aren't implemented, the object can still be referenced by other objects in state restoration archives, but it won't save/restore any state of its own.
      • objectRestorationClass

        default UIObjectRestoration objectRestorationClass()
        The restoration class specifies a class which is consulted during restoration to find/create the object, rather than trying to look it up implicitly
      • restorationParent

        default UIStateRestoring restorationParent()
        The parent property is used to scope the restoration identifier path for an object, to disambiguate it from other objects that might be using the same identifier. The parent must be a restorable object or a view controller, else it will be ignored.