interface ScanbotSdkConfiguration {
    allowGpuAcceleration?: boolean;
    allowXnnpackAcceleration?: boolean;
    documentDetectorMode?: DocumentDetectorMode;
    enableNativeLogging?: boolean;
    fileEncryptionMode?: FileEncryptionMode;
    fileEncryptionPassword?: string;
    licenseKey?: string;
    loggingEnabled?: boolean;
    storageBaseDirectory?: string;
    storageImageFormat?: StorageImageFormat;
    storageImageQuality?: number;
    useCameraX?: boolean;
}

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)

documentDetectorMode?: DocumentDetectorMode

Optional mode for document detection.

enableNativeLogging?: boolean

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

fileEncryptionMode?: FileEncryptionMode

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

fileEncryptionPassword?: 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.

storageBaseDirectory?: 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.

storageImageFormat?: StorageImageFormat

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'.

storageImageQuality?: number

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.

useCameraX?: boolean

If set to true, Camera X will be used for the RTU-UI components (Android only). Default is true.