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

## DocumentEnums

Defines the type of document to be captured. Passed to `openDocument` to configure the capture session.

:::note[Mixed casing]
`CPF`, `CNH`, and `RG` use uppercase (historical SDK naming). Multi-word variants use lowerCamelCase (`cnhFrente`, `rgVerso`, etc.). Use each value exactly as documented — the SDK is case-sensitive.
:::

| Swift | Objective-C | Description |
|---|---|---|
| `DocumentEnums.CPF` | `DocumentCPF` | Capture the CPF |
| `DocumentEnums.CNH` | `DocumentCNH` | Capture the open CNH (front and back) |
| `DocumentEnums.cnhFrente` | `DocumentCnhFrente` | Capture the front of the CNH |
| `DocumentEnums.cnhVerso` | `DocumentCnhVerso` | Capture the back of the CNH |
| `DocumentEnums.RG` | `DocumentRG` | Capture the open RG (front and back) |
| `DocumentEnums.rgFrente` | `DocumentRgFrente` | Capture the front of the RG |
| `DocumentEnums.rgVerso` | `DocumentRgVerso` | Capture the back of the RG |
| `DocumentEnums.none` | `DocumentNone` | Generic rectangular frame — use for any document without a dedicated frame |

:::tip[Non-Brazilian documents]
The document-specific frames (`CPF`, `CNH`, `RG`) are Brazil-only. For US driver's licenses, passports, or any other document type, use `DocumentEnums.none` / `DocumentNone`.
:::

```swift
enum DocumentEnums {
    case CPF
    case CNH
    case cnhFrente
    case cnhVerso
    case RG
    case rgFrente
    case rgVerso
    case none
}
```

## EnvironmentEnum

Defines the environment used during SDK execution.

| Value | Description |
|---|---|
| `EnvironmentEnum.PROD` | Production environment |
| `EnvironmentEnum.UAT` | UAT / sandbox environment |

```swift
enum EnvironmentEnum {
    case PROD
    case UAT
}
```

## LocaleTypes

Defines the language used in the SDK UI.

| Value | Description |
|---|---|
| `LocaleTypes.PT_BR` | Portuguese (Brazil) |
| `LocaleTypes.ES_MX` | Spanish (Mexico) |
| `LocaleTypes.ES_ES` | Spanish (Spain) |
| `LocaleTypes.EN_US` | English (USA) |

```swift
enum LocaleTypes {
    case PT_BR
    case ES_MX
    case ES_ES
    case EN_US
}
```