Skip to main content

Initialization API

Classes / Builders
ClassDescription
AcessoBioManagerMain SDK entry point
AcessoBioConfigDataSourceProtocol for credential configuration
Constructor

Two overloads are available:

// Single-argument — viewController must conform to AcessoBioManagerDelegate
AcessoBioManager(viewController: UIViewController)

// Two-argument — delegate can be a separate object
AcessoBioManager(viewController: UIViewController, delegate: AcessoBioManagerDelegate)
ParameterTypeDescription
viewControllerUIViewControlleriOS context for presenting the capture screen
delegateAcessoBioManagerDelegateDelegate for lifecycle callbacks — required in both overloads; in the single-argument form, viewController itself must conform to AcessoBioManagerDelegate.
Configuration properties
MethodTypeDefaultDescription
setEnvironment(_:)EnvironmentEnum.PRODEnvironment — .PROD or .UAT
setSmartFrame(_:)BooltrueEnables intelligent framing for selfie capture
setAutoCapture(_:)BooltrueEnables automatic capture
setTimeoutSession(_:)Int40Maximum session time, in seconds (minimum: 40)
setLocale(_:)LocaleTypes.PT_BRCapture screen language
setTheme(_:)AcessoBioThemeDelegateCustom theme for the capture screen
Build
MethodReturnsDescription
build()UnicoCheckCameraFinalizes the builder and returns the camera object used to call prepareSelfieCamera or prepareDocumentCamera