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

## Classes / Builders

| Kelas | Deskripsi |
|---|---|
| `AcessoBioManager` | Titik masuk utama SDK |
| `AcessoBioConfigDataSource` | Protokol untuk konfigurasi kredensial |

## Constructor

Dua overload tersedia:

```swift
// Satu argumen — viewController harus conform ke AcessoBioManagerDelegate
AcessoBioManager(viewController: UIViewController)

// Dua argumen — delegate bisa berupa objek terpisah
AcessoBioManager(viewController: UIViewController, delegate: AcessoBioManagerDelegate)
```

| Parameter | Tipe | Deskripsi |
|---|---|---|
| `viewController` | `UIViewController` | Konteks iOS untuk menampilkan layar pengambilan gambar |
| `delegate` | `AcessoBioManagerDelegate` | Delegate untuk callbacks siklus hidup — diperlukan di kedua overload; dalam bentuk satu argumen, `viewController` sendiri harus conform ke `AcessoBioManagerDelegate`. |

## Configuration properties

| Metode | Tipe | Default | Deskripsi |
|---|---|---|---|
| `setEnvironment(_:)` | `EnvironmentEnum` | `.PROD` | Lingkungan — `.PROD` atau `.UAT` |
| `setSmartFrame(_:)` | `Bool` | `true` | Mengaktifkan pembingkaian cerdas untuk pengambilan gambar selfie |
| `setAutoCapture(_:)` | `Bool` | `true` | Mengaktifkan pengambilan gambar otomatis |
| `setTimeoutSession(_:)` | `Int` | `40` | Waktu sesi maksimum, dalam detik (minimum: 40) |
| `setLocale(_:)` | `LocaleTypes` | `.PT_BR` | Bahasa layar pengambilan gambar |
| `setTheme(_:)` | `AcessoBioThemeDelegate` | — | Tema kustom untuk layar pengambilan gambar |

## Build

| Method | Returns | Description |
|---|---|---|
| `build()` | `UnicoCheckCamera` | Menyelesaikan builder dan mengembalikan objek kamera yang digunakan untuk memanggil `prepareSelfieCamera` atau `prepareDocumentCamera` |