ScanbotBarcodeScannerSDKInitializer

Initializes Scanbot SDK library. Use it to set up desired components and then call initialize.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard

Functions

Link copied to clipboard

Enables/disables GPU acceleration for TensorFlow ML models.

Link copied to clipboard

Enables/disables XNNPACK acceleration for TensorFlow ML models, which provides highly optimized implementations of floating-point neural network operators.

Link copied to clipboard
open override fun initialize(application: Application): SdkLicenseInfo

Initializes Scanbot SDK library. Can be called only once.

Link copied to clipboard
fun licenceErrorHandler(licenseErrorHandler: IScanbotSDKLicenseErrorHandler): ScanbotBarcodeScannerSDKInitializer

Register callback for handling all sdk license errors after sdk initialisation.

Link copied to clipboard

Set Scanbot Barcode Scanner SDK license.

Link copied to clipboard

Adjust this parameter to specify which Logger should be used. To set a custom logger withLogging must be set to true.

Link copied to clipboard
fun precompileGpuMlModels(precompilingCallback: () -> Unit = {}): ScanbotBarcodeScannerSDKInitializer

Performs GPU ML models pre-compiling.

Link copied to clipboard

Set the custom directory for pages and documents storage.

Link copied to clipboard

Enable or disable CPU acceleration.

Link copied to clipboard
fun useFileEncryption(enableFileEncryption: Boolean, fileIOProcessor: FileIOProcessor? = null): ScanbotBarcodeScannerSDKInitializer

Sets a global Scanbot Barcode Scanner SDK flag which enables/disables a usage of encrypted file IO processor for all image and pdf files.

Link copied to clipboard
open override fun withLogging(useLog: Boolean, enableNativeLogging: Boolean): ScanbotBarcodeScannerSDKInitializer

Enables or disables logs in Scanbot SDK.