> For the complete documentation index, see [llms.txt](https://docs.caf.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.caf.io/caf-sdk/caf-sdk-pt-br/ios/standalone-modules/document-detector/builder/methods.md). Agents can also search and read this documentation through its [MCP server](https://docs.caf.io/~gitbook/mcp).

# Definindo propriedades

| Parâmetro                                                                                                | Descrição                                                                                                                                                            | Obrigatório |
| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :---------: |
| `mobileToken: String`                                                                                    | Token associado à sua conta, para uso do SDK.                                                                                                                        |      ✅      |
| `enableMultiLanguage: Bool`                                                                              | Ativa/desativa o suporte a vários idiomas. Padrão: `ativado`.                                                                                                        |      ❌      |
| `setPersonId(personId: String?)`                                                                         | Identificador do usuário para fins de identificação do perfil de fraude e para auxiliar na identificação de logs do Analytics em casos de bugs e erros.              |      ❌      |
| `setDocumentCaptureFlow(flow: [DocumentDetectorStep])`                                                   | Define o fluxo de captura do documento conforme explicado.                                                                                                           |      ✅      |
| `setPopupSettings(show: Bool)`                                                                           | Ativa/desativa os pop-ups exibidos antes de cada captura de documento. Padrão: `true`.                                                                               |      ❌      |
| `setLayout(layout: DocumentDetectorLayout)`                                                              | Permite substituir os atributos padrão de layout do SDK, como botões, cores e fontes.                                                                                |      ❌      |
| `setNetworkSettings(requestTimeout: TimeInterval)`                                                       | Define o tempo limite das requisições do SDK. Padrão: `60` segundos.                                                                                                 |      ❌      |
| `setLuminositySensorSettings(luminosityThreshold: Float?)`                                               | Define o limite entre brilho ambiente aceitável/inaceitável. Padrão: `-3`.                                                                                           |      ❌      |
| `setOrientationSensorSettings(orientationThreshold: Double?)`                                            | Define o limite entre orientação correta/incorreta do dispositivo. Valores mais altos tornam-no mais flexível. Padrão: `0.3`.                                        |      ❌      |
| `setStabilitySensorSettings(stabilityThreshold: Double?)`                                                | Define as configurações do sensor de estabilidade. Padrão: `0.3`.                                                                                                    |      ❌      |
| `setProxySettings(proxySettings: CafProxySettings?)`                                                     | Define as configurações de proxy. Padrão: `null`.                                                                                                                    |      ❌      |
| `showPreview(show: Bool, title: String?, subtitle: String?, confirmLabel: String?, retryLabel: String?)` | Ativa/desativa e configura a visualização da captura realizada, solicitando a confirmação do usuário para prosseguir. Padrão: `false`.                               |      ❌      |
| `setMessageSettings(messageSettings: MessageSettings)`                                                   | Personaliza as mensagens exibidas no rótulo de feedback durante o processo de captura e análise.                                                                     |      ❌      |
| `setCompressSettings(compressionQuality: CGFloat)`                                                       | Configura a qualidade no processo de compressão. Espera valores entre `0.8` e `1.0`. Padrão: `0.9`.                                                                  |      ❌      |
| `setManualCaptureSettings(enable: Bool, time: TimeInterval)`                                             | Ativa/desativa a captura manual. Para iPhone X e anteriores, a captura manual é a configuração padrão e única.                                                       |      ❌      |
| `setGetImageUrlExpireTime(expireTime: String)`                                                           | Define o tempo que a URL da imagem permanecerá no servidor até expirar. Aceita intervalos como `30m`, `24h`, `10d`. Padrão: `3h`.                                    |      ❌      |
| `setCurrentStepDoneDelay(currentStepDoneDelay: TimeInterval)`                                            | Adia a atividade após a conclusão de cada etapa. Padrão: `false`.                                                                                                    |      ❌      |
| `setUploadSettings(uploadSettings: CafUploadSettings)`                                                   | Configura as definições de upload de documentos. O fluxo do SDK solicitará ao usuário o envio dos arquivos do documento em vez de capturá-los. Padrão: `desativado`. |      ❌      |
| `setResolutionSettings(resolution: CafResolution)`                                                       | Permite definir a resolução da captura. Opções: `FULL_HD` (1920 x 1080), `ULTRA_HD` (3840 x 2160). Padrão: `FULL_HD`.                                                |      ❌      |
| `setAllowedPassportList(passportList: [CafCountryCodes])`                                                | Restringe os passaportes aceitos a países emissores específicos. Padrão: todos os países.                                                                            |      ❌      |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.caf.io/caf-sdk/caf-sdk-pt-br/ios/standalone-modules/document-detector/builder/methods.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
