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

## Classes / Builders

| Class | Description |
|---|---|
| `UnicoCheck` | Main plugin entry point |
| `UnicoCheckBuilder` | Builder for session configuration |
| `UnicoCheckCameraOpener` | Opener instance returned by `build()` |
| `UnicoConfig` | Object for credential configuration (per-platform) |
| `UnicoListener` | Listener interface for SDK lifecycle callbacks |

## Constructor parameters

| Parameter | Type | Description |
|---|---|---|
| `listener` | `UnicoListener` | Listener for lifecycle callbacks |
| `unicoConfigIos` | `UnicoConfig` | iOS credentials |
| `unicoConfigAndroid` | `UnicoConfig` | Android credentials |

## Configuration methods

| Method | Type | Default | Description |
|---|---|---|---|
| `setEnvironment(unicoEnvironment:)` | `UnicoEnvironment` | `PROD` | Environment — `UnicoEnvironment.PROD` or `UnicoEnvironment.UAT` |
| `setSmartFrame(smartFrame:)` | `bool` | `true` | Enables intelligent framing for selfie capture |
| `setAutoCapture(autoCapture:)` | `bool` | `true` | Enables automatic capture |
| `setTimeoutSession(timeout:)` | `int` | `40` | Maximum session time, in seconds (minimum: 40) |
| `setLocale(locale:)` | `LocaleTypes` | `PT_BR` | Capture screen language |

## Build

| Method | Returns | Description |
|---|---|---|
| `build()` | `UnicoCheckCameraOpener` | Finalizes the builder and returns the camera opener used to call `openCameraSelfie` or `openCameraDocument` |