MrzScannerJsonConfiguration

data class MrzScannerJsonConfiguration(var version: String? = null, var screen: String? = null, var cameraModule: JsonCameraModule? = null, var cameraOverlayColor: JsonColor? = null, var cancelButtonTitle: String? = null, var enableCameraButtonTitle: String? = null, var enableCameraExplanationText: String? = null, var finderLineColor: JsonColor? = null, var finderLineWidth: Double? = null, var finderTextHint: String? = null, var finderTextHintColor: JsonColor? = null, var finderAspectRatio: JsonAspectRatio? = null, var flashEnabled: Boolean? = null, var orientationLockMode: JsonOrientationLockMode? = null, var successBeepEnabled: Boolean? = null, var topBarBackgroundColor: JsonColor? = null, var topBarButtonsActiveColor: JsonColor? = null, var topBarButtonsInactiveColor: JsonColor? = null, var useButtonsAllCaps: Boolean? = null, var replaceCancelButtonWithIcon: Boolean? = null, var cameraPreviewMode: JsonCameraPreviewMode? = null, var touchToFocusEnabled: Boolean? = null) : Parcelable

Constructors

Link copied to clipboard
constructor(version: String? = null, screen: String? = null, cameraModule: JsonCameraModule? = null, cameraOverlayColor: JsonColor? = null, cancelButtonTitle: String? = null, enableCameraButtonTitle: String? = null, enableCameraExplanationText: String? = null, finderLineColor: JsonColor? = null, finderLineWidth: Double? = null, finderTextHint: String? = null, finderTextHintColor: JsonColor? = null, finderAspectRatio: JsonAspectRatio? = null, flashEnabled: Boolean? = null, orientationLockMode: JsonOrientationLockMode? = null, successBeepEnabled: Boolean? = null, topBarBackgroundColor: JsonColor? = null, topBarButtonsActiveColor: JsonColor? = null, topBarButtonsInactiveColor: JsonColor? = null, useButtonsAllCaps: Boolean? = null, replaceCancelButtonWithIcon: Boolean? = null, cameraPreviewMode: JsonCameraPreviewMode? = null, touchToFocusEnabled: Boolean? = null)

Properties

Link copied to clipboard

Preferred camera module (Default: BACK).

Link copied to clipboard

Background color outside of the finder window.

Link copied to clipboard

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

Link copied to clipboard

Title of the cancel button.

Link copied to clipboard

Title of the button that opens the screen where the user can allow the app to use the camera.

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Foreground color of the detection overlay.

Link copied to clipboard

Width of the finder frame border. Default is 2.

Link copied to clipboard

String being displayed as a description.

Link copied to clipboard

Foreground color of the description label.

Link copied to clipboard

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

Link copied to clipboard

Lock mode for the UI's orientation.

Link copied to clipboard

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

Link copied to clipboard

The configuration object should be applied for this screen.

Link copied to clipboard

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

Link copied to clipboard

Background color of the top toolbar.

Link copied to clipboard

Color of all active toggle buttons in the toolbar.

Link copied to clipboard

Color of all inactive toggle buttons in the toolbar.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

Version of the configuration object.

Functions