> 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/android/standalone-modules/document-detector/builder/advanced-settings/preview-settings.md).

# Preview configuration

This page explains the possible settings for displaying the capture preview screen.

## **PreviewSettings** <a href="#cix3alw1h4c2" id="cix3alw1h4c2"></a>

<table><thead><tr><th width="543">Parameter</th><th>Default</th></tr></thead><tbody><tr><td><p><strong><code>boolean show</code></strong></p><p>Enables/disables the feature.</p></td><td><code>false</code></td></tr><tr><td><p><strong><code>.setTitle(@NonNull @StringRes Integer titleResourceId)</code></strong></p><p>Sets the title shown on the screen.</p></td><td>"A foto ficou boa?"</td></tr><tr><td><p><strong><code>.setSubtitle(@NonNull @StringRes Integer subtitleResourceId)</code></strong></p><p>Sets the subtitle displayed on the screen.</p></td><td>Default by SDK</td></tr><tr><td><p><strong><code>.setConfirmLabel(@NonNull @StringRes Integer confirmLabelResourceId)</code></strong></p><p>Sets the message displayed on the confirmation button.</p></td><td>"Sim, ficou boa!"</td></tr><tr><td><p><strong><code>.setRetryLabel(@NonNull @StringRes Integer retryLabelResourceId)</code></strong></p><p>Sets the message displayed on the button to perform a new capture.</p></td><td>"Tirar novamente"</td></tr></tbody></table>


---

# 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/android/standalone-modules/document-detector/builder/advanced-settings/preview-settings.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.
