Initialize configuration for the Scanbot SDK.

Constructors

Properties

allowGpuAcceleration: boolean

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

Default is true

allowXnnpackAcceleration: boolean

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

Default is true

enableNativeLogging: boolean

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

Default is false

fileEncryptionMode: null | FileEncryptionMode

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

fileEncryptionPassword: null | string

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

licenseKey: string

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

loggingEnabled: boolean

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

Default is false

performanceHintApi: boolean

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

storageBaseDirectory: null | string

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