ScanbotSdkJsonConfiguration

data class ScanbotSdkJsonConfiguration(var version: String?, var screen: String?, var loggingEnabled: Boolean?, var enableNativeLogging: Boolean?, var licenseKey: String?, var storageImageQuality: Int?, var storageImageFormat: JsonStorageImageFormat?, var storageBaseDirectory: String?, var documentScannerEngineMode: JsonDocumentScannerEngineMode?, var fileEncryptionMode: JsonFileEncryptionMode?, var fileEncryptionPassword: String?, var performanceHintApi: Boolean?, var allowGpuAcceleration: Boolean?, var allowXnnpackAcceleration: Boolean?)

Constructors

Link copied to clipboard
constructor(version: String?, screen: String?, loggingEnabled: Boolean?, enableNativeLogging: Boolean?, licenseKey: String?, storageImageQuality: Int?, storageImageFormat: JsonStorageImageFormat?, storageBaseDirectory: String?, documentScannerEngineMode: JsonDocumentScannerEngineMode?, fileEncryptionMode: JsonFileEncryptionMode?, fileEncryptionPassword: String?, performanceHintApi: Boolean?, allowGpuAcceleration: Boolean?, allowXnnpackAcceleration: Boolean?)

Properties

Link copied to clipboard

If set to true, GPU Acceleration will be enabled for Barcode Scanner, Document Scanner and Generic Document Recognizer (Android only). Default is true.

Link copied to clipboard

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

Link copied to clipboard

Optional mode for document scanner engine.

Link copied to clipboard

Optional boolean flag that enables Scanbot SDK Core native logging (default is false, Android only).

Link copied to clipboard

Optional file encryption mode, 'AES128' or 'AES256'.

Link copied to clipboard

Optional file encryption password. Refer to the section "Storage Encryption" for more details.

Link copied to clipboard

Your license key for the Scanbot SDK. See the "License Key" section below.

Link copied to clipboard

Optional boolean flag to enable logging. See the "Logging" section below.

Link copied to clipboard

If set to true, PerformanceHintApi is enabled, which lead to increase of performance due of increased use of top CPU cores (Android only), also increase battery usage. Default is true.

Link copied to clipboard

The configuration object should be applied for this screen

Link copied to clipboard

Optional directory as file URI to override the default storage base directory of the Scanbot SDK. Refer to the section "Storage" for more details.

Link copied to clipboard

Optional image format, either 'JPG' or 'PNG'. The recommended default value is 'JPG'. Please note that 'PNG' will result in larger image files! Also, the storageImageQuality value does not apply for 'PNG'.

Link copied to clipboard

Optional image quality value. It defines the quality factor of JPEG images. The value must be between 1 and 100, where 100 means maximum quality and largest file size. The recommended default value is 80 which is a good compromise between image file size and document legibility.

Link copied to clipboard

A version of the configuration object