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
UnbluVisitorClientDeclaration
Swift
static func createVisitorClient(withConfiguration config: UnbluClientConfiguration) -> any UnbluVisitorClient -
Creates an instance of
UnbluAgentClientDeclaration
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 UnbluTwoFactorAuthWebViewProtocolParameters
uiConfigThe
UnbluTwoFactorAuthUIConfigused to configure the error window’s button titles and colors.completeA closure that returns
HTTPCookieobjects and an optionalStringerror message.