---
title: Initialization API
canonical: https://developer.unico.io/dual-api/developers/sdks-and-tools/ios/api-reference/initialization-api
locale: en
generated_by: markdown-export
---

## Classes / Builders

| Class | Description |
|---|---|
| `AcessoBioManager` | Main SDK entry point |
| `AcessoBioConfigDataSource` | Protocol for credential configuration |

## Constructor

Two overloads are available:

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

// Two-argument — delegate can be a separate object
AcessoBioManager(viewController: UIViewController, delegate: AcessoBioManagerDelegate)
```

| Parameter | Type | Description |
|---|---|---|
| `viewController` | `UIViewController` | iOS context for presenting the capture screen |
| `delegate` | `AcessoBioManagerDelegate` | Delegate for lifecycle callbacks — required in both overloads; in the single-argument form, `viewController` itself must conform to `AcessoBioManagerDelegate`. |

## Configuration properties

| Method | Type | Default | Description |
|---|---|---|---|
| `setEnvironment(_:)` | `EnvironmentEnum` | `.PROD` | Environment — `.PROD` or `.UAT` |
| `setSmartFrame(_:)` | `Bool` | `true` | Enables intelligent framing for selfie capture |
| `setAutoCapture(_:)` | `Bool` | `true` | Enables automatic capture |
| `setTimeoutSession(_:)` | `Int` | `40` | Maximum session time, in seconds (minimum: 40) |
| `setLocale(_:)` | `LocaleTypes` | `.PT_BR` | Capture screen language |
| `setTheme(_:)` | `AcessoBioThemeDelegate` | — | Custom theme for the capture screen |

## Build

| Method | Returns | Description |
|---|---|---|
| `build()` | `UnicoCheckCamera` | Finalizes the builder and returns the camera object used to call `prepareSelfieCamera` or `prepareDocumentCamera` |