interface MrzScannerConfiguration {
    cameraModule?: CameraModule;
    cameraOverlayColor?: string;
    cameraPreviewMode?: CameraPreviewMode;
    cancelButtonHidden?: boolean;
    cancelButtonTitle?: string;
    enableCameraButtonTitle?: string;
    enableCameraExplanationText?: string;
    finderAspectRatio?: AspectRatio;
    finderLineColor?: string;
    finderLineWidth?: number;
    finderTextHint?: string;
    finderTextHintColor?: string;
    flashButtonHidden?: boolean;
    flashButtonTitle?: string;
    flashEnabled?: boolean;
    orientationLockMode?: OrientationLockMode;
    replaceCancelButtonWithIcon?: boolean;
    successBeepEnabled?: boolean;
    topBarBackgroundColor?: string;
    topBarButtonsActiveColor?: string;
    topBarButtonsInactiveColor?: string;
    touchToFocusEnabled?: boolean;
    useButtonsAllCaps?: boolean;
}

Properties

cameraModule?: CameraModule

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 to hide the cancel button. 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 app to use the camera.

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.

finderAspectRatio?: AspectRatio

Aspect ratio of the finder frame (width to height), which is used to build the actual finder frame. Default is 7, which is good for standard machine readable zones.

finderLineColor?: string

Foreground color of the detection overlay.

finderLineWidth?: number

Width of the finder frame border. Default is 2.

finderTextHint?: string

String being displayed as a description.

finderTextHintColor?: string

Foreground color of the description label.

flashButtonHidden?: boolean

Whether to hide the flash toggle button. iOS only.

flashButtonTitle?: string

Title of the flash toggle button. iOS only.

flashEnabled?: boolean

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

orientationLockMode?: OrientationLockMode

Lock mode for the UI's orientation.

replaceCancelButtonWithIcon?: boolean

Whether to replace the cancel button in the top bar with a back arrow icon. Default is FALSE. Android only.

successBeepEnabled?: boolean

Whether to play a beep sound after a successful detection. Default value is TRUE.

topBarBackgroundColor?: string

Background color of the top toolbar.

topBarButtonsActiveColor?: string

Color of all active toggle buttons in the toolbar.

topBarButtonsInactiveColor?: string

Color of all inactive toggle buttons in the toolbar.

touchToFocusEnabled?: boolean

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

useButtonsAllCaps?: boolean

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