Skip to main content

Classic UI for the Android Document Scanner Module

Overview

The Scanbot SDK now supports a customizable Document Scanner composable that you can use to build your own Document Scanner screen using Jetpack Compose. It provides a UI for Document scanning with guidance overlays and a camera preview.

The DocumentScannerCustomUI provides fully customizable camera controls and features with encapsulated scanning logic.

Adding the feature as a dependency

implementation("io.scanbot:rtu-ui-v2-bundle:$latestSdkVersion") // To use compose components with document scanner

Integration

  • DocumentScannerCustomUI provides fully customizable camera controls and features with encapsulated scanning logic.

Take a look at the document-scanner example app to see how to integrate the scanner and the compose-example to see how to build a custom UI using the compose components.

To implement the Document Scanner using composables, you need to create a composable layout with DocumentScannerCustomUI:

Detailed Document Scanner Composable
loading...

To control the scanning process and camera params, use mutable states and pass them to the DocumentScannerCustomUI composable:

Mutable states for camera control
loading...

Additionally, you can customize the finder overlay by passing your FinderOverlayConfiguration to the finderConfiguration parameter of the DocumentScannerCustomUI composable:

Detailed Finder Configuration
loading...

Want to scan longer than one minute?

Generate a free trial license to test the Scanbot SDK thoroughly.

Get free trial license