Scan Tips
The SDK provides an optional toolbar item within the scanning screen, that when clicked, will open some tips on how to get the best scan result. By default it is activated for photo payment and disabled for document scan and shows some default items. You can customize it according to your needs or disable it completely.

Disable
To disable the scan tips, set the scanTips property to null.
For Document Scan, the scan tips are disabled by default.
val photoPaymentConfig = PhotoPaymentConfiguration().apply {
scanTips = null
}
val scope = rememberCoroutineScope()
scope.launch {
val result = DocutainSdk.startPhotoPayment(photoPaymentConfig)
}
Customize
Use the items property to select and arrange the default items provided by the SDK. The following examples show only the first default tip.
- Document Scan
- Photo Payment
val scanTips = ScanTips().apply {
items = DocutainSdk.scanTipsDefaultItems().take(1)
}
val scanConfig = DocumentScannerConfiguration().apply {
this.scanTips = scanTips
}
val scope = rememberCoroutineScope()
scope.launch {
val result = DocutainSdk.scanDocument(scanConfig)
}
val scanTips = ScanTips().apply {
items = DocutainSdk.scanTipsDefaultItemsPhotoPayment().take(1)
}
val photoPaymentConfig = PhotoPaymentConfiguration().apply {
this.scanTips = scanTips
}
val scope = rememberCoroutineScope()
scope.launch {
val result = DocutainSdk.startPhotoPayment(photoPaymentConfig)
}
The following provides an overview of the currently available options to alter the ScanTips:
| Property | Type | Description |
|---|---|---|
items | List<DocutainListItem>? | The items you want to show within the scan tips. If you don't provide any items, some default items will be displayed. |
toolbarItem | DocutainButton | The toolbar item that will be shown allowing the user to open the scan tips. |
You can alter the title of the toolbar item from shared code:
val scanTips = ScanTips().apply {
toolbarItem.title = "Scan tips"
}