Interface GenericDocumentRecognizerConfiguration

interface GenericDocumentRecognizerConfiguration {
    acceptedDocumentTypes?: GenericDocumentType[];
    cameraModule?: CameraModule;
    cameraOverlayColor?: string;
    cameraPreviewMode?: CameraPreviewMode;
    cancelButtonHidden?: boolean;
    cancelButtonTitle?: string;
    clearButtonTitle?: string;
    confidenceValue?: string;
    detailsActionColor?: string;
    detailsBackgroundColor?: string;
    detailsPrimaryColor?: string;
    detailsSectionHeaderBackgroundColor?: string;
    detailsSectionHeaderTextColor?: string;
    documentsDisplayConfiguration?: DocumentsDisplayConfiguration[];
    emptyValueTitle?: string;
    enableCameraButtonTitle?: string;
    enableCameraExplanationText?: string;
    excludedFieldTypes?: string[];
    fieldConfidenceHighColor?: string;
    fieldConfidenceLowColor?: string;
    fieldConfidenceModerateColor?: string;
    fieldConfidenceTextColor?: string;
    fieldsCountText?: string;
    fieldsCountTextColor?: string;
    fieldsDisplayConfiguration?: FieldsDisplayConfiguration[];
    finderLineColor?: string;
    finderLineWidth?: number;
    flashButtonHidden?: boolean;
    flashButtonTitle?: string;
    flashEnabled?: boolean;
    imageTitle?: string;
    noDataTitle?: string;
    orientationLockMode?: OrientationLockMode;
    replaceCancelButtonWithIcon?: boolean;
    scanBackSideTitle?: string;
    scanFrontSideTitle?: string;
    scannedEverythingTitle?: string;
    startScanningTitle?: string;
    submitButtonTitle?: string;
    tipBackgroundColor?: string;
    tipTextColor?: string;
    topBarBackgroundColor?: string;
    topBarButtonsActiveColor?: string;
    topBarButtonsInactiveColor?: string;
    touchToFocusEnabled?: boolean;
    useButtonsAllCaps?: boolean;
}

Properties

acceptedDocumentTypes?: GenericDocumentType[]

Accepted document types. All other document types will be ignored. By default - All types

cameraModule?: CameraModule

The preferred camera module (default - BACK)

cameraOverlayColor?: string

Background color outside of the finder window.

cameraPreviewMode?: CameraPreviewMode

Preview mode of the camera. FILL_IN or FIT_IN. Default is FILL_IN. Android only

cancelButtonHidden?: boolean

Whether the cancel button is hidden or not. iOS only.

cancelButtonTitle?: string

Title of the cancel button.

clearButtonTitle?: string

String used for displaying amount of detected fields. Use %d for number formatting symbol.

confidenceValue?: string

String that shows average confidence value of scanned document. Use %d as number formatting symbol.

detailsActionColor?: string

The color of Submit button

detailsBackgroundColor?: string

The color of bottom sheet

detailsPrimaryColor?: string

The color of text elements in bottom sheet

detailsSectionHeaderBackgroundColor?: string

Background color for section headers on the details screen. iOS only.

detailsSectionHeaderTextColor?: string

Text color for section headers on the details screen. iOS only.

documentsDisplayConfiguration?: DocumentsDisplayConfiguration[]

Allows to configure the display configuration for documents.

emptyValueTitle?: string

String being displayed for empty values. iOS only.

enableCameraButtonTitle?: string

Title of the button that opens the screen where the user can allow the usage of the camera by the app.

enableCameraExplanationText?: string

Text that will be displayed when the app is not allowed to use the camera, prompting the user to enable the usage of the camera.

excludedFieldTypes?: string[]

List of secure fields which should be excluded from scanning process. All other fields will be scanned as usual. Field should be set ONLY as normalized field name. Example - [DePassport.BirthDate] or [DePassport.Birthplace]

fieldConfidenceHighColor?: string

Color of confidence value label background in details screen, when the field confidence level is high.

fieldConfidenceLowColor?: string

Color of confidence value label background in details screen, when the field confidence level is low.

fieldConfidenceModerateColor?: string

Color of confidence value label background in details screen, when the field confidence level is moderate.

fieldConfidenceTextColor?: string

Color of confidence value label text in details.

fieldsCountText?: string

String used for displaying amount of detected fields. Use %d for number formatting symbol.

fieldsCountTextColor?: string

Text color of the fields count label.

fieldsDisplayConfiguration?: FieldsDisplayConfiguration[]

Allows to configure the display configuration for fields.

finderLineColor?: string

Foreground color of the detection overlay.

finderLineWidth?: number

Width of finder frame border. Default is 2.

flashButtonHidden?: boolean

Controls whether the flash toggle button is hidden or not.

flashButtonTitle?: string

Title of the flash toggle button.

flashEnabled?: boolean

Controls whether the flash should be initially enabled. The default value is FALSE.

imageTitle?: string

A title to show image content. Android only.

noDataTitle?: string

String that notifies that nothing was scanned yet.

orientationLockMode?: OrientationLockMode

UI Interface orientation lock mode

replaceCancelButtonWithIcon?: boolean

If true, replaces the cancel button in the top bar with a back arrow icon. The default value is FALSE. Android only.

scanBackSideTitle?: string

String that asks user to scan back side of a document.

scanFrontSideTitle?: string

String that asks user to scan front side of a document.

scannedEverythingTitle?: string

String that notifies that both sides of document are scanned.

startScanningTitle?: string

String that asks user to start scanning a document.

submitButtonTitle?: string

Text of the button which finishes the flow

tipBackgroundColor?: string

Color of tip background on scanning screen.

tipTextColor?: string

Color of tip text on scanning screen.

topBarBackgroundColor?: string

The background color of the top toolbar.

topBarButtonsActiveColor?: string

The color of all active toggle buttons in the toolbar.

topBarButtonsInactiveColor?: string

The color of all inactive toggle buttons in the toolbar.

touchToFocusEnabled?: boolean

Whether touch-to-focus is enabled on camera preview. Enabled by default. Android only.

useButtonsAllCaps?: boolean

Controls whether buttons should use all capitals style, as defined by the Android Material Design. Defaults to TRUE. Android only.