-
Undocumented
Declaration
Swift
private let window: UIWindow -
Undocumented
Declaration
Swift
private let killSwitchView: BaseKillSwitchView -
Undocumented
Declaration
Swift
private let forceUpdateView: BaseKillSwitchView -
Undocumented
Declaration
Swift
private let networkRetryInterval: TimeInterval -
Undocumented
Declaration
Swift
private let killSwitchErrorCode: Int -
Undocumented
Declaration
Swift
private let forceUpgradeErrorCode: Int -
Undocumented
Declaration
Swift
private var error: APIErrorType? -
Undocumented
Declaration
Swift
private var backendError: APIError? { get } -
Undocumented
Declaration
Swift
private var descriptionText: String { get } -
Undocumented
Declaration
Swift
private lazy var manager: BellerophonManager { get set }
-
init(window:killSwitchView:forceUpdateView:killSwitchErrorCode:forceUpgradeErrorCode:retryInterval:)Undocumented
Declaration
Swift
public init(window: UIWindow, killSwitchView: BaseKillSwitchView, forceUpdateView: BaseKillSwitchView, killSwitchErrorCode: Int, forceUpgradeErrorCode: Int, retryInterval: TimeInterval = 15)
-
Called when a network error is received.
Declaration
Swift
public func receivedError(_ error: APIErrorType?)Parameters
errorApi error.
-
Provide Bellerophon’s current status according to the status object received.
Declaration
Swift
public func bellerophonStatus(_ manager: BellerophonManager, completion: @escaping (BellerophonObservable?, Error?) -> Void)Parameters
managerThe Bellerophon manager.
completionCompletion block that returns the BellerophonObservable status.
-
Called to determine if the killswitch is activated.
Declaration
Swift
public func apiInactive() -> BoolReturn Value
Flag if the killswitch is activated.
-
Called to determine if the force update is activated.
Declaration
Swift
public func forceUpdate() -> BoolReturn Value
Flag if the force update is activated.
-
The network retry interval before re-checking the app status.
Declaration
Swift
public func retryInterval() -> TimeIntervalReturn Value
Time interval for re-checking the app status.
-
User message to display on the custom view.
Declaration
Swift
public func userMessage() -> StringReturn Value
User message string to display.
-
Optional deprecated function to set the user’s message.
Declaration
Swift
public func setUserMessage(_ message: String)Parameters
messageMessage string.
KillSwitchProvider Class Reference