startCroppingScreen

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

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

Parameters

configuration

The configuration for cropping.

onResult

Callback invoked with the result of the cropping operation.

onCanceled

Optional callback invoked if cropping is canceled.