Unblu
struct Unblu
A struct providing functions to create UnbluVisitorClient
and UnbluAgentClient
instances
-
Defines the log level of the Unblu SDK. Messages with a lower level will not be logged.
The default value is
LogLevel.info
.Declaration
Swift
static var logLevel: LogLevel { get set }
-
Enables the debug output of the Unblu SDK. This contains additional information on log messages and is independent of the log level defined with
logLevel
.Declaration
Swift
static var enableDebugOutput: Bool { get set }
-
Creates an instance of
UnbluVisitorClient
Declaration
Swift
static func createVisitorClient(withConfiguration config: UnbluClientConfiguration) -> any UnbluVisitorClient
-
Creates an instance of
UnbluAgentClient
Declaration
Swift
static func createAgentClient(withConfiguration config: UnbluClientConfiguration) -> any UnbluAgentClient
-
Creates a view for handling 2FA authentication.
Declaration
Swift
static func createTwoFactorAuthWebView(withConfiguration config: UnbluClientConfiguration, uiConfig: UnbluTwoFactorAuthErrorUIConfig = .init(), _ complete: @escaping (Bool, String?) -> Void) -> any UnbluTwoFactorAuthWebViewProtocol
Parameters
uiConfig
The
UnbluTwoFactorAuthUIConfig
used to configure the error window’s button titles and colors.complete
A closure that returns
HTTPCookie
objects and an optionalString
error message.