Unblu
public struct Unblu
A struct providing functions to create UnbluVisitorClient
and UnbluAgentClient
instances
-
Creates an instance of
UnbluVisitorClient
Declaration
Swift
public static func createVisitorClient(withConfiguration config: UnbluClientConfiguration) -> UnbluVisitorClient
Parameters
config
The
UnbluClientConfiguration
to configure Unblu with -
Creates an instance of
UnbluAgentClient
Declaration
Swift
public static func createAgentClient(withConfiguration config: UnbluClientConfiguration) -> UnbluAgentClient
Parameters
config
The
UnbluClientConfiguration
to configure Unblu with -
createTwoFactorAuthWebView(withConfiguration:
reloadButtonTitle: errorLabelColor: buttonLabelColor: buttonBorderColor: buttonBackgroundColor: _: ) Creates a view for handling 2FA authentication.
Declaration
Swift
public static func createTwoFactorAuthWebView( withConfiguration config: UnbluClientConfiguration, reloadButtonTitle: String = "Reload", errorLabelColor: UIColor = .systemRed, buttonLabelColor: UIColor = .systemBlue, buttonBorderColor: UIColor = .systemBlue, buttonBackgroundColor: UIColor = .systemGray, _ complete: @escaping ([HTTPCookie]?, String?) -> Void ) -> UnbluTwoFactorAuthWebViewProtocol
Parameters
config
The
UnbluClientConfiguration
object used to configure Unblu.reloadButtonTitle
The title for the reload button.
errorLabelColor
The color for the error label.
buttonLabelColor
The color for the button label.
buttonBorderColor
The color for the button border.
buttonBackgroundColor
The color for the button background.
complete
A closure that returns
HTTPCookie
objects and an optionalString
error message.