public class MRZScannerConfiguration
Class which is used to configure class MRZScannerActivity
Contains settings indicating views Behaviour, Texts and Appearance
class MRZScannerActivity| Constructor and Description |
|---|
MRZScannerConfiguration()
Class which is used to configure
class MRZScannerActivity
Contains settings indicating views Behaviour, Texts and Appearance |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.io.Serializable> |
getMrzCameraConfiguration() |
void |
setCameraOverlayColor(int cameraOverlayColor)
Camera appearance param.
Color of the alpha transparent layer on the camera view.
|
void |
setCancelButtonTitle(java.lang.String cancelButtonTitle)
Camera texts param.
Cancel button text.
|
void |
setEnableCameraButtonTitle(java.lang.String enableCameraButtonTitle)
Camera texts param
Sets camera permission button text
|
void |
setEnableCameraExplanationText(java.lang.String enableCameraExplanationText)
Camera texts param
Sets camera permission description text
|
void |
setFinderHeight(int finderHeight)
Camera appearance param.
Height of Finder window
|
void |
setFinderLineColor(int finderLineColor)
Camera appearance param.
Finder line color.
|
void |
setFinderLineWidth(int finderLineWidth)
Camera appearance param.
Finder line thickness.
|
void |
setFinderTextHint(java.lang.String finderTextHint)
Camera texts param.
User finder text hint.
|
void |
setFinderTextHintColor(int finderTextHintColor)
Camera appearance param.
Finder text hint color.
|
void |
setFinderWidth(int finderWidth)
Camera appearance param.
Width of Finder window.
|
void |
setFlashEnabled(boolean flashEnabled)
Camera behaviour param.
Set flash mode for camera active by default if flashEnabled true,
inactive otherwise
Optional, default value is FALSE.
|
void |
setOrientationLockMode(CameraOrientationMode cameraOrientationMode)
Camera behaviour param.
Orientation lock mode of the camera: PORTRAIT or LANDSCAPE.
Optional, by default camera orientation is not locked.
|
void |
setSuccessBeepEnabled(boolean successBeepEnabled)
Camera behaviour param.
Play a beep tone on success.
Optional, default value is TRUE.
|
void |
setTopBarBackgroundColor(int topBarBackgroundColor)
Camera appearance param.
Background color of the top toolbar.
|
void |
setTopBarButtonsColor(int topBarButtonsColor)
Camera appearance param.
Color of all buttons in the top toolbar.
|
public MRZScannerConfiguration()
Class which is used to configure class MRZScannerActivity
Contains settings indicating views Behaviour, Texts and Appearance
class MRZScannerActivitypublic java.util.Map<java.lang.String,java.io.Serializable> getMrzCameraConfiguration()
public void setFlashEnabled(boolean flashEnabled)
Camera behaviour param. Set flash mode for camera active by default if flashEnabled true, inactive otherwise Optional, default value is FALSE.
public void setOrientationLockMode(CameraOrientationMode cameraOrientationMode)
Camera behaviour param. Orientation lock mode of the camera: PORTRAIT or LANDSCAPE. Optional, by default camera orientation is not locked.
public void setSuccessBeepEnabled(boolean successBeepEnabled)
Camera behaviour param. Play a beep tone on success. Optional, default value is TRUE.
public void setTopBarBackgroundColor(int topBarBackgroundColor)
Camera appearance param. Background color of the top toolbar.
public void setTopBarButtonsColor(int topBarButtonsColor)
Camera appearance param. Color of all buttons in the top toolbar.
public void setCameraOverlayColor(int cameraOverlayColor)
Camera appearance param. Color of the alpha transparent layer on the camera view.
public void setFinderWidth(int finderWidth)
Camera appearance param. Width of Finder window.
public void setFinderHeight(int finderHeight)
Camera appearance param. Height of Finder window
public void setFinderLineWidth(int finderLineWidth)
Camera appearance param. Finder line thickness.
public void setFinderLineColor(int finderLineColor)
Camera appearance param. Finder line color.
public void setFinderTextHintColor(int finderTextHintColor)
Camera appearance param. Finder text hint color.
public void setCancelButtonTitle(java.lang.String cancelButtonTitle)
Camera texts param. Cancel button text.
public void setFinderTextHint(java.lang.String finderTextHint)
Camera texts param. User finder text hint.
public void setEnableCameraExplanationText(java.lang.String enableCameraExplanationText)
Camera texts param Sets camera permission description text
public void setEnableCameraButtonTitle(java.lang.String enableCameraButtonTitle)
Camera texts param Sets camera permission button text