Class MedicalCertificateScannerJsonConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class MedicalCertificateScannerJsonConfiguration implements Parcelable
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description MedicalCertificateScannerJsonConfiguration(String version, String screen, JsonCameraModule cameraModule, JsonColor cameraOverlayColor, String cancelButtonTitle, String enableCameraButtonTitle, String enableCameraExplanationText, JsonColor finderLineColor, Double finderLineWidth, Boolean flashEnabled, JsonOrientationLockMode orientationLockMode, JsonColor topBarBackgroundColor, JsonColor topBarButtonsActiveColor, JsonColor topBarButtonsInactiveColor, Boolean useButtonsAllCaps, JsonColor userGuidanceBackgroundColor, JsonColor userGuidanceTextColor, Boolean recognizePatientInfo, Boolean returnCroppedDocumentImage, String errorDialogTitle, JsonColor errorDialogAccentColor, String errorDialogMessage, String errorDialogOkButton, Boolean errorDialogOkButtonFilled, JsonColor errorDialogOkButtonFilledTextColor, Boolean showFinderOverlay, JsonMedicalCertificateUserGuidanceStrings userGuidanceStrings, JsonCameraPreviewMode cameraPreviewMode, Boolean touchToFocusEnabled)
-
Method Summary
Modifier and Type Method Description final StringgetVersion()A version of the configuration object final UnitsetVersion(String version)A version of the configuration object final StringgetScreen()The configuration object should be applied for this screen final UnitsetScreen(String screen)The configuration object should be applied for this screen final JsonCameraModulegetCameraModule()The preferred camera module (default - BACK) final UnitsetCameraModule(JsonCameraModule cameraModule)The preferred camera module (default - BACK) final JsonColorgetCameraOverlayColor()Background color outside of the finder window. final UnitsetCameraOverlayColor(JsonColor cameraOverlayColor)Background color outside of the finder window. final StringgetCancelButtonTitle()Title of the cancel button. final UnitsetCancelButtonTitle(String cancelButtonTitle)Title of the cancel button. final StringgetEnableCameraButtonTitle()Title of the button that opens the screen where the user can allow the usage of the camera by the app. final UnitsetEnableCameraButtonTitle(String enableCameraButtonTitle)Title of the button that opens the screen where the user can allow the usage of the camera by the app. final StringgetEnableCameraExplanationText()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. final UnitsetEnableCameraExplanationText(String enableCameraExplanationText)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. final JsonColorgetFinderLineColor()Foreground color of the detection overlay. final UnitsetFinderLineColor(JsonColor finderLineColor)Foreground color of the detection overlay. final DoublegetFinderLineWidth()Width of finder frame border. final UnitsetFinderLineWidth(Double finderLineWidth)Width of finder frame border. final BooleangetFlashEnabled()Controls whether the flash should be initially enabled. final UnitsetFlashEnabled(Boolean flashEnabled)Controls whether the flash should be initially enabled. final JsonOrientationLockModegetOrientationLockMode()UI Interface orientation lock mode final UnitsetOrientationLockMode(JsonOrientationLockMode orientationLockMode)UI Interface orientation lock mode final JsonColorgetTopBarBackgroundColor()The background color of the top toolbar. final UnitsetTopBarBackgroundColor(JsonColor topBarBackgroundColor)The background color of the top toolbar. final JsonColorgetTopBarButtonsActiveColor()The color of all active toggle buttons in the toolbar. final UnitsetTopBarButtonsActiveColor(JsonColor topBarButtonsActiveColor)The color of all active toggle buttons in the toolbar. final JsonColorgetTopBarButtonsInactiveColor()The color of all inactive toggle buttons in the toolbar. final UnitsetTopBarButtonsInactiveColor(JsonColor topBarButtonsInactiveColor)The color of all inactive toggle buttons in the toolbar. final BooleangetUseButtonsAllCaps()Controls whether buttons should use all capitals style, as defined by the Android Material Design. final UnitsetUseButtonsAllCaps(Boolean useButtonsAllCaps)Controls whether buttons should use all capitals style, as defined by the Android Material Design. final JsonColorgetUserGuidanceBackgroundColor()The background color of the user guidance hints. final UnitsetUserGuidanceBackgroundColor(JsonColor userGuidanceBackgroundColor)The background color of the user guidance hints. final JsonColorgetUserGuidanceTextColor()The text color of the user guidance hints. final UnitsetUserGuidanceTextColor(JsonColor userGuidanceTextColor)The text color of the user guidance hints. final BooleangetRecognizePatientInfo()Whether sdk should run recognition of Patient Information block. final UnitsetRecognizePatientInfo(Boolean recognizePatientInfo)Whether sdk should run recognition of Patient Information block. final BooleangetReturnCroppedDocumentImage()Whether sdk should return cropped document image or not final UnitsetReturnCroppedDocumentImage(Boolean returnCroppedDocumentImage)Whether sdk should return cropped document image or not final StringgetErrorDialogTitle()Error dialog title final UnitsetErrorDialogTitle(String errorDialogTitle)Error dialog title final JsonColorgetErrorDialogAccentColor()The accent color of buttons on a error dialog. final UnitsetErrorDialogAccentColor(JsonColor errorDialogAccentColor)The accent color of buttons on a error dialog. final StringgetErrorDialogMessage()Error dialog message final UnitsetErrorDialogMessage(String errorDialogMessage)Error dialog message final StringgetErrorDialogOkButton()Error dialog ok button text. final UnitsetErrorDialogOkButton(String errorDialogOkButton)Error dialog ok button text. final BooleangetErrorDialogOkButtonFilled()Allows to set if the confirm button should be filled. final UnitsetErrorDialogOkButtonFilled(Boolean errorDialogOkButtonFilled)Allows to set if the confirm button should be filled. final JsonColorgetErrorDialogOkButtonFilledTextColor()Allows to set a text color of the filled button. final UnitsetErrorDialogOkButtonFilledTextColor(JsonColor errorDialogOkButtonFilledTextColor)Allows to set a text color of the filled button. final BooleangetShowFinderOverlay()Option to show or hide finder overlay final UnitsetShowFinderOverlay(Boolean showFinderOverlay)Option to show or hide finder overlay final JsonMedicalCertificateUserGuidanceStringsgetUserGuidanceStrings()Configuration that helps to override default hint values final UnitsetUserGuidanceStrings(JsonMedicalCertificateUserGuidanceStrings userGuidanceStrings)Configuration that helps to override default hint values final JsonCameraPreviewModegetCameraPreviewMode()Preview mode of the camera. final UnitsetCameraPreviewMode(JsonCameraPreviewMode cameraPreviewMode)Preview mode of the camera. final BooleangetTouchToFocusEnabled()Whether touch-to-focus is enabled on camera preview. final UnitsetTouchToFocusEnabled(Boolean touchToFocusEnabled)Whether touch-to-focus is enabled on camera preview. -
-
Constructor Detail
-
MedicalCertificateScannerJsonConfiguration
MedicalCertificateScannerJsonConfiguration(String version, String screen, JsonCameraModule cameraModule, JsonColor cameraOverlayColor, String cancelButtonTitle, String enableCameraButtonTitle, String enableCameraExplanationText, JsonColor finderLineColor, Double finderLineWidth, Boolean flashEnabled, JsonOrientationLockMode orientationLockMode, JsonColor topBarBackgroundColor, JsonColor topBarButtonsActiveColor, JsonColor topBarButtonsInactiveColor, Boolean useButtonsAllCaps, JsonColor userGuidanceBackgroundColor, JsonColor userGuidanceTextColor, Boolean recognizePatientInfo, Boolean returnCroppedDocumentImage, String errorDialogTitle, JsonColor errorDialogAccentColor, String errorDialogMessage, String errorDialogOkButton, Boolean errorDialogOkButtonFilled, JsonColor errorDialogOkButtonFilledTextColor, Boolean showFinderOverlay, JsonMedicalCertificateUserGuidanceStrings userGuidanceStrings, JsonCameraPreviewMode cameraPreviewMode, Boolean touchToFocusEnabled)
-
-
Method Detail
-
getVersion
final String getVersion()
A version of the configuration object
-
setVersion
final Unit setVersion(String version)
A version of the configuration object
-
setScreen
final Unit setScreen(String screen)
The configuration object should be applied for this screen
-
getCameraModule
final JsonCameraModule getCameraModule()
The preferred camera module (default - BACK)
-
setCameraModule
final Unit setCameraModule(JsonCameraModule cameraModule)
The preferred camera module (default - BACK)
-
getCameraOverlayColor
final JsonColor getCameraOverlayColor()
Background color outside of the finder window.
-
setCameraOverlayColor
final Unit setCameraOverlayColor(JsonColor cameraOverlayColor)
Background color outside of the finder window.
-
getCancelButtonTitle
final String getCancelButtonTitle()
Title of the cancel button.
-
setCancelButtonTitle
final Unit setCancelButtonTitle(String cancelButtonTitle)
Title of the cancel button.
-
getEnableCameraButtonTitle
final String getEnableCameraButtonTitle()
Title of the button that opens the screen where the user can allow the usage of the camera by the app.
-
setEnableCameraButtonTitle
final Unit setEnableCameraButtonTitle(String enableCameraButtonTitle)
Title of the button that opens the screen where the user can allow the usage of the camera by the app.
-
getEnableCameraExplanationText
final String getEnableCameraExplanationText()
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.
-
setEnableCameraExplanationText
final Unit setEnableCameraExplanationText(String enableCameraExplanationText)
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.
-
getFinderLineColor
final JsonColor getFinderLineColor()
Foreground color of the detection overlay.
-
setFinderLineColor
final Unit setFinderLineColor(JsonColor finderLineColor)
Foreground color of the detection overlay.
-
getFinderLineWidth
final Double getFinderLineWidth()
Width of finder frame border. Default is 2.
-
setFinderLineWidth
final Unit setFinderLineWidth(Double finderLineWidth)
Width of finder frame border. Default is 2.
-
getFlashEnabled
final Boolean getFlashEnabled()
Controls whether the flash should be initially enabled. The default value is FALSE.
-
setFlashEnabled
final Unit setFlashEnabled(Boolean flashEnabled)
Controls whether the flash should be initially enabled. The default value is FALSE.
-
getOrientationLockMode
final JsonOrientationLockMode getOrientationLockMode()
UI Interface orientation lock mode
-
setOrientationLockMode
final Unit setOrientationLockMode(JsonOrientationLockMode orientationLockMode)
UI Interface orientation lock mode
-
getTopBarBackgroundColor
final JsonColor getTopBarBackgroundColor()
The background color of the top toolbar.
-
setTopBarBackgroundColor
final Unit setTopBarBackgroundColor(JsonColor topBarBackgroundColor)
The background color of the top toolbar.
-
getTopBarButtonsActiveColor
final JsonColor getTopBarButtonsActiveColor()
The color of all active toggle buttons in the toolbar.
-
setTopBarButtonsActiveColor
final Unit setTopBarButtonsActiveColor(JsonColor topBarButtonsActiveColor)
The color of all active toggle buttons in the toolbar.
-
getTopBarButtonsInactiveColor
final JsonColor getTopBarButtonsInactiveColor()
The color of all inactive toggle buttons in the toolbar.
-
setTopBarButtonsInactiveColor
final Unit setTopBarButtonsInactiveColor(JsonColor topBarButtonsInactiveColor)
The color of all inactive toggle buttons in the toolbar.
-
getUseButtonsAllCaps
final Boolean getUseButtonsAllCaps()
Controls whether buttons should use all capitals style, as defined by the Android Material Design. Defaults to TRUE. Android only.
-
setUseButtonsAllCaps
final Unit setUseButtonsAllCaps(Boolean useButtonsAllCaps)
Controls whether buttons should use all capitals style, as defined by the Android Material Design. Defaults to TRUE. Android only.
-
getUserGuidanceBackgroundColor
final JsonColor getUserGuidanceBackgroundColor()
The background color of the user guidance hints.
-
setUserGuidanceBackgroundColor
final Unit setUserGuidanceBackgroundColor(JsonColor userGuidanceBackgroundColor)
The background color of the user guidance hints.
-
getUserGuidanceTextColor
final JsonColor getUserGuidanceTextColor()
The text color of the user guidance hints.
-
setUserGuidanceTextColor
final Unit setUserGuidanceTextColor(JsonColor userGuidanceTextColor)
The text color of the user guidance hints.
-
getRecognizePatientInfo
final Boolean getRecognizePatientInfo()
Whether sdk should run recognition of Patient Information block.
-
setRecognizePatientInfo
final Unit setRecognizePatientInfo(Boolean recognizePatientInfo)
Whether sdk should run recognition of Patient Information block.
-
getReturnCroppedDocumentImage
final Boolean getReturnCroppedDocumentImage()
Whether sdk should return cropped document image or not
-
setReturnCroppedDocumentImage
final Unit setReturnCroppedDocumentImage(Boolean returnCroppedDocumentImage)
Whether sdk should return cropped document image or not
-
getErrorDialogTitle
final String getErrorDialogTitle()
Error dialog title
-
setErrorDialogTitle
final Unit setErrorDialogTitle(String errorDialogTitle)
Error dialog title
-
getErrorDialogAccentColor
final JsonColor getErrorDialogAccentColor()
The accent color of buttons on a error dialog.
-
setErrorDialogAccentColor
final Unit setErrorDialogAccentColor(JsonColor errorDialogAccentColor)
The accent color of buttons on a error dialog.
-
getErrorDialogMessage
final String getErrorDialogMessage()
Error dialog message
-
setErrorDialogMessage
final Unit setErrorDialogMessage(String errorDialogMessage)
Error dialog message
-
getErrorDialogOkButton
final String getErrorDialogOkButton()
Error dialog ok button text.
-
setErrorDialogOkButton
final Unit setErrorDialogOkButton(String errorDialogOkButton)
Error dialog ok button text.
-
getErrorDialogOkButtonFilled
final Boolean getErrorDialogOkButtonFilled()
Allows to set if the confirm button should be filled. Android only.
-
setErrorDialogOkButtonFilled
final Unit setErrorDialogOkButtonFilled(Boolean errorDialogOkButtonFilled)
Allows to set if the confirm button should be filled. Android only.
-
getErrorDialogOkButtonFilledTextColor
final JsonColor getErrorDialogOkButtonFilledTextColor()
Allows to set a text color of the filled button. Android only.
-
setErrorDialogOkButtonFilledTextColor
final Unit setErrorDialogOkButtonFilledTextColor(JsonColor errorDialogOkButtonFilledTextColor)
Allows to set a text color of the filled button. Android only.
-
getShowFinderOverlay
final Boolean getShowFinderOverlay()
Option to show or hide finder overlay
-
setShowFinderOverlay
final Unit setShowFinderOverlay(Boolean showFinderOverlay)
Option to show or hide finder overlay
-
getUserGuidanceStrings
final JsonMedicalCertificateUserGuidanceStrings getUserGuidanceStrings()
Configuration that helps to override default hint values
-
setUserGuidanceStrings
final Unit setUserGuidanceStrings(JsonMedicalCertificateUserGuidanceStrings userGuidanceStrings)
Configuration that helps to override default hint values
-
getCameraPreviewMode
final JsonCameraPreviewMode getCameraPreviewMode()
Preview mode of the camera. FILL_IN or FIT_IN. Default is FILL_IN. Android only
-
setCameraPreviewMode
final Unit setCameraPreviewMode(JsonCameraPreviewMode cameraPreviewMode)
Preview mode of the camera. FILL_IN or FIT_IN. Default is FILL_IN. Android only
-
getTouchToFocusEnabled
final Boolean getTouchToFocusEnabled()
Whether touch-to-focus is enabled on camera preview. Enabled by default. Android only.
-
setTouchToFocusEnabled
final Unit setTouchToFocusEnabled(Boolean touchToFocusEnabled)
Whether touch-to-focus is enabled on camera preview. Enabled by default. Android only.
-
-
-
-