Skip to main content

Getting started with the Kotlin Multiplatform Document Scanner SDK's RTU UI

Adding the RTU UI dependency

The RTU UI components are included in the main SDK bundle package kmp-bundle-sdk. Add it as a dependency to your project:

implementation("io.scanbot:kmp-bundle-sdk:$scanbotSDK")

Get the latest $scanbotSDK from the changelog.

Launching the RTU UI Document Scanner

With just a few lines of code, you can integrate document scanning into your application's workflow.

Document Scanner
loading...

Handling Scan results

The result is represented by the sealed class io.scanbot.sdk.kmp.utils.Result, which has two implementations:

  • Result.Success — wraps the scanned data in a value property
  • Result.Failure — wraps a Throwable in an exception property

The scan result is returned only when the execution result is Result.Success. You can access it using the onSuccess convenience method, or retrieve the value directly via result.getOrNull().

The result object is of type DocumentData, which contains the list of scanned pages, PDF/TIFF export URIs, and metadata. Use its properties to retrieve pages and process them further.

You can find all available properties of the result in the API documentation.

Handling the result
loading...

Want to scan longer than one minute?

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

Get free trial license