startCroppingScreen

abstract fun startCroppingScreen(configuration: CroppingStandaloneConfiguration, 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 the cropping screen is canceled or force closed.