ScanbotDocument

interface ScanbotDocument

Functions

Link copied to clipboard
abstract fun addPages(documentUuid: String, images: List<ImageRef>, options: AddPageOptions? = null): Result<DocumentData>

Adds new pages from the provided images to the document with the specified Uuid.

Link copied to clipboard

Analyzes the quality of the document on the provided image.

Link copied to clipboard
abstract fun cloneDocument(documentUuid: String): Result<DocumentData>

Clones the document with the specified Uuid.

Link copied to clipboard

Creates a document from the provided images with the specified options.

Link copied to clipboard
abstract fun deleteAllDocuments(): Result<Unit>

Deletes all stored documents.

Link copied to clipboard
abstract fun deleteDocument(documentUuid: String): Result<Unit>

Deletes the document with the specified Uuid.

Link copied to clipboard
abstract fun documentExists(documentUuid: String): Result<Boolean>

Checks if a document with the specified Uuid exists.

Link copied to clipboard

Retrieves the Uuids of all stored documents.

Link copied to clipboard
abstract fun loadDocument(documentUuid: String): Result<DocumentData>

Loads the document with the specified Uuid.

Link copied to clipboard
abstract fun modifyPage(documentUuid: String, pageUuid: String, options: ModifyPageOptions? = null): Result<DocumentData>

Modifies a page within the document using the specified options.

Link copied to clipboard
abstract fun movePage(documentUuid: String, fromIndex: Int, toIndex: Int): Result<DocumentData>

Moves a page within the document to a new position.

Link copied to clipboard
abstract fun removeAllPages(documentUuid: String): Result<DocumentData>

Removes all pages from the document with the specified UUID.

Link copied to clipboard
abstract fun removePages(documentUuid: String, pageUuids: List<String>): Result<DocumentData>

Removes pages with the specified UUIDs from the document.

Link copied to clipboard

Scans a document from the provided image.

Link copied to clipboard
abstract fun startCroppingScreen(configuration: CroppingConfiguration, onResult: (Result<DocumentData>) -> Unit, onCanceled: () -> Unit? = null)

Opens the Ready-To-Use UI Cropping screen with the desired configuration.

Link copied to clipboard
abstract fun startScanner(configuration: DocumentScanningFlow, onResult: (Result<DocumentData>) -> Unit, onCanceled: () -> Unit? = null)

Opens the Ready-To-Use UI Document Scanner screen with the desired configuration.