MedicalCertificateScannerConfiguration

Class which is used to configure MedicalCertificateScannerActivity. Contains settings indicating views Behaviour, Texts and Appearance.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun setCameraModule(cameraModule: CameraModule)

Set supported camera module: CameraModule.BACK, CameraModule.FRONT or others. Optional. By default is CameraModule.BACK.

Link copied to clipboard
fun setCameraOverlayColor(cameraOverlayColor: Int)

Background color outside of the finder window.

Link copied to clipboard
fun setCameraPreviewMode(cameraPreviewMode: CameraPreviewMode)

Preview mode of the camera: CameraPreviewMode.FIT_IN or CameraPreviewMode.FIT_IN. Optional, default is CameraPreviewMode.FILL_IN.

Link copied to clipboard
fun setCancelButtonTitle(cancelButtonTitle: String)

Title of the cancel button.

Link copied to clipboard
fun setEnableCameraButtonTitle(enableCameraButtonTitle: String)

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

Link copied to clipboard
fun setEnableCameraExplanationText(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.

Link copied to clipboard
fun setErrorDialogAccentColor(dialogAccentColor: Int)

The accent color of buttons on a error dialog.

Link copied to clipboard

Error dialog message.

Link copied to clipboard

Allows to set if the confirm button should be filled.

Link copied to clipboard

Allows to set a text color of the filled button. See setErrorDialogOkButtonFilled.

Link copied to clipboard

Error dialog ok button text.

Link copied to clipboard

Error dialog title.

Link copied to clipboard
fun setFinderLineColor(finderLineColor: Int)

Color of the finder window's outline.

Link copied to clipboard
fun setFinderLineWidth(finderLineWidth: Int)

Thickness of the finder window's outline in Px.

Link copied to clipboard
fun setFlashEnabled(flashEnabled: Boolean)

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

Link copied to clipboard
fun setOrientationLockMode(cameraOrientationMode: CameraOrientationMode)

Orientation lock mode of the camera: CameraOrientationMode.PORTRAIT or CameraOrientationMode.LANDSCAPE. By default the camera orientation is not locked.

Link copied to clipboard

Whether sdk should return cropped document image or not

Link copied to clipboard
fun setScanPatientInfo(isEnabled: Boolean)

Whether sdk should run scanning of Patient Information block.

Link copied to clipboard

Option to show or hide finder overlay.

Link copied to clipboard
fun setTopBarBackgroundColor(topBarBackgroundColor: Int)

Background color of the top toolbar.

Link copied to clipboard
fun setTopBarButtonsColor(topBarButtonsColor: Int)

Color of the titles of all buttons in the top toolbar.

Link copied to clipboard
fun setTopBarButtonsInactiveColor(topBarButtonsInactiveColor: Int)

Color of the titles of all buttons in the top toolbar.

Link copied to clipboard

Controls whether the touch to focus feature should be enabled. Default is true.

Link copied to clipboard

Controls whether buttons should use all capitals style.

Link copied to clipboard
fun setUserGuidanceBackgroundColor(userGuidanceBackgroundColor: Int)

The background color of the user guidance hints.

Link copied to clipboard
fun setUserGuidanceStrings(cameraOpen: String? = null, scanning: String? = null, capturing: String? = null, processing: String? = null)

Configuration that helps to override default hint values.

Link copied to clipboard
fun setUserGuidanceTextColor(userGuidanceTextColor: Int)

The text color of the user guidance hints.