Interface MedicalCertificateRecognizerConfiguration

interface MedicalCertificateRecognizerConfiguration {
    cameraModule?: CameraModule;
    cameraOverlayColor?: string;
    cameraPreviewMode?: CameraPreviewMode;
    cancelButtonHidden?: boolean;
    cancelButtonTitle?: string;
    enableCameraButtonTitle?: string;
    enableCameraExplanationText?: string;
    errorDialogAccentColor?: string;
    errorDialogButtonStyle?: DialogButtonStyle;
    errorDialogMessage?: string;
    errorDialogOkButton?: string;
    errorDialogOkButtonFilled?: boolean;
    errorDialogOkButtonFilledTextColor?: string;
    errorDialogStyle?: DialogStyle;
    errorDialogTitle?: string;
    finderAspectRatio?: AspectRatio;
    finderLineColor?: string;
    finderLineWidth?: number;
    finderSecondaryAspectRatio?: AspectRatio;
    flashButtonHidden?: boolean;
    flashButtonTitle?: string;
    flashEnabled?: boolean;
    orientationLockMode?: OrientationLockMode;
    recognizePatientInfo?: boolean;
    returnCroppedDocumentImage?: boolean;
    showFinderOverlay?: boolean;
    topBarBackgroundColor?: string;
    topBarButtonsActiveColor?: string;
    topBarButtonsInactiveColor?: string;
    touchToFocusEnabled?: boolean;
    useButtonsAllCaps?: boolean;
    userGuidanceBackgroundColor?: string;
    userGuidanceHidden?: boolean;
    userGuidanceStrings?: MedicalCertificateUserGuidanceStrings;
    userGuidanceTextColor?: string;
}

Properties

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.

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.

errorDialogAccentColor?: string

The accent color of buttons on a error dialog.

errorDialogButtonStyle?: DialogButtonStyle

The style of the dialogs/alerts OK button in case of error. iOS only.

errorDialogMessage?: string

Error dialog message

errorDialogOkButton?: string

Error dialog ok button text.

errorDialogOkButtonFilled?: boolean

Allows to set if the confirm button should be filled. Android only.

errorDialogOkButtonFilledTextColor?: string

Allows to set a text color of the filled button. Android only.

errorDialogStyle?: DialogStyle

The style of the dialog/alert in case of error. iOS only.

errorDialogTitle?: string

Error dialog title

finderAspectRatio?: AspectRatio

Aspect ratio of the view finder (width \ height). Set to nil of no view finder should be displayed. iOS only.

finderLineColor?: string

Foreground color of the detection overlay.

finderLineWidth?: number

Width of finder frame border. Default is 2.

finderSecondaryAspectRatio?: AspectRatio

Secondary aspect ratio of finder frame (width \ height). Set to nil if no secondary view finder should be displayed. iOS only.

flashButtonHidden?: boolean

Controls whether the flash toggle button is hidden or not. iOS only.

flashButtonTitle?: string

Title of the flash toggle button. iOS only.

flashEnabled?: boolean

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

orientationLockMode?: OrientationLockMode

UI Interface orientation lock mode

recognizePatientInfo?: boolean

Whether sdk should run recognition of Patient Information block.

returnCroppedDocumentImage?: boolean

Whether sdk should return cropped document image or not

showFinderOverlay?: boolean

Option to show or hide finder overlay

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.

userGuidanceBackgroundColor?: string

The background color of the user guidance hints.

userGuidanceHidden?: boolean

Whether the user guidance label is hidden or not. iOS only.

Configuration that helps to override default hint values

userGuidanceTextColor?: string

The text color of the user guidance hints.