StateRestorationContext

public class StateRestorationContext

Object containing essential informations about state restoration in progress.

  • State restoration identifier.

    Declaration

    Swift

    public let restorationIdentifier: String
  • State restoration view controller class.

    Declaration

    Swift

    public let viewControllerClass: UIViewController.Type
  • Protection space class.

    Declaration

    Swift

    public let protectionSpaceClass: AnyClass?
  • Passed data.

    Declaration

    Swift

    public let data: Any?
  • Observes unprotect.

    Declaration

    Swift

    public func onUnprotect(_ success: @escaping UnprotectSuccess)

    Parameters

    success

    Unprotection success block.

  • Observes protection failure.

    Declaration

    Swift

    public func onFailure(_ failure: @escaping UnprotectFailure)

    Parameters

    failure

    Uprotection failure block.