Unblu
public 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
public 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
public static var enableDebugOutput: Bool { get set }
-
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 -
Creates a view for handling 2FA authentication.
Declaration
Swift
public static func createTwoFactorAuthWebView( withConfiguration config: UnbluClientConfiguration, uiConfig: UnbluTwoFactorAuthErrorUIConfig = .init(), _ complete: @escaping (Bool, String?) -> Void ) -> UnbluTwoFactorAuthWebViewProtocol
Parameters
config
The
UnbluClientConfiguration
object used to configure Unblu.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.