Class BaseBlinkIdUiSettings
java.lang.Object
com.microblink.blinkid.uisettings.UISettings<BlinkIdOverlayController>
com.microblink.blinkid.uisettings.BaseBlinkIdUiSettings
- All Implemented Interfaces:
BackSideScanningTimeoutUIOptions,BeepSoundUIOptions,CurrentImageListenerUIOptions,DebugImageListenerUIOptions,DocumentDataMatchUIOptions,DocumentNotSupportedDialogUIOptions,HighResSuccessFrameCaptureUIOptions,MrzDetectionUIOptions,OcrResultDisplayUIOptions,ScanUIEventListenerUIOptions,SplashScreenUIOptions
- Direct Known Subclasses:
BlinkIdUISettings,DocumentUISettings,LegacyDocumentVerificationUISettings
public abstract class BaseBlinkIdUiSettings
extends UISettings<BlinkIdOverlayController>
implements BeepSoundUIOptions, DebugImageListenerUIOptions, CurrentImageListenerUIOptions, HighResSuccessFrameCaptureUIOptions, SplashScreenUIOptions, OcrResultDisplayUIOptions, DocumentDataMatchUIOptions, MrzDetectionUIOptions, DocumentNotSupportedDialogUIOptions, BackSideScanningTimeoutUIOptions, ScanUIEventListenerUIOptions
-
Field Summary
Fields inherited from interface com.microblink.blinkid.uisettings.options.BackSideScanningTimeoutUIOptions
TIMEOUT_INFINITY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseBlinkIdUiSettings(android.content.Intent intent) protectedBaseBlinkIdUiSettings(RecognizerBundle recognizerBundle) -
Method Summary
Modifier and TypeMethodDescriptioncreateOverlayController(android.app.Activity activity, ScanResultListener scanResultListener) Creates overlay controller and configures it using set values.protected abstract BlinkIdOverlayViewvoidenableHighResSuccessFrameCapture(boolean enabled) Sets whether to enable capturing high res frames on recognition success.longprotected abstract booleanvoidsaveToIntent(android.content.Intent intent) Saves this scan activity settings toIntentso it can be passed to the corresponding scan activity.voidsetBackSideScanningTimeoutMs(long backSideScanningTimeoutMs) Set back side scanning timeout in milliseconds, default is 17 000 milliseconds.voidsetBeepSoundResourceID(int beepSoundResourceID) Defines the resource ID of the sound to be played when recognition is successful.voidsetCurrentImageListener(CurrentImageListener currentImageListener) Sets implementation ofCurrentImageListenerinterface that will obtain images that are currently being processed.voidsetDebugImageListener(DebugImageListener debugImageListener) Sets implementation ofDebugImageListenerinterface that will obtain images that are being processed.voidsetDocumentDataMatchRequired(boolean isRequired) If set to true, user won't be able to finish the scanning process if data read from front and back sides doesn't match.voidsetOcrResultDisplayMode(OcrResultDisplayMode ocrResultDisplayMode) Defines mode in which OCR result will be drawn on camera preview.voidsetScanUIEventListener(ScanUIEventListener scanningEventListener) Sets implementation ofScanUIEventListenerinterface that will be called;voidsetShowMrzDetection(boolean showOcrResult) Defines whether detection of MRZ(Machine Readable Zone) will be displayed in UI, default istrue.voidsetShowNotSupportedDialog(boolean showNotSupportedDialog) Defines whether Document Not Supported dialog will be displayed in UI, default istrue.voidsetShowTooltipTimeIntervalMs(long showTooltipTimeIntervalMs) voidsetSplashScreenLayoutResourceID(int splashScreenLayoutResourceID) Defines the ID of the layout resource that will be used as camera splash screen displayed while camera is being initialized.Methods inherited from class com.microblink.blinkid.uisettings.UISettings
getActivityTheme, getFilterTouchesWhenObscured, getTargetActivity, getUsingFlagSecure, setActivityTheme, setCameraSettings, setFilterTouchesWhenObscured, setUsingFlagSecure
-
Constructor Details
-
BaseBlinkIdUiSettings
-
BaseBlinkIdUiSettings
protected BaseBlinkIdUiSettings(@NonNull android.content.Intent intent)
-
-
Method Details
-
setBeepSoundResourceID
public void setBeepSoundResourceID(@RawRes int beepSoundResourceID) Description copied from interface:BeepSoundUIOptionsDefines the resource ID of the sound to be played when recognition is successful.- Specified by:
setBeepSoundResourceIDin interfaceBeepSoundUIOptions- Parameters:
beepSoundResourceID- resource ID of the sound to be played when recognition is successful.
-
setDocumentDataMatchRequired
public void setDocumentDataMatchRequired(boolean isRequired) Description copied from interface:DocumentDataMatchUIOptionsIf set to true, user won't be able to finish the scanning process if data read from front and back sides doesn't match. This is applicable only when using combined recognizers.- Specified by:
setDocumentDataMatchRequiredin interfaceDocumentDataMatchUIOptions- Parameters:
isRequired-trueif you wish to enable document data matching
-
setDebugImageListener
Description copied from interface:DebugImageListenerUIOptionsSets implementation ofDebugImageListenerinterface that will obtain images that are being processed. DebugImageListener will receive all possible debug images that become available during recognition process.- Specified by:
setDebugImageListenerin interfaceDebugImageListenerUIOptions- Parameters:
debugImageListener- Implementation of debug image listener ornullto clear listener that has been set previously.
-
setCurrentImageListener
Description copied from interface:CurrentImageListenerUIOptionsSets implementation ofCurrentImageListenerinterface that will obtain images that are currently being processed.CurrentImageListenerwill receive all possible images that become available during recognition process.- Specified by:
setCurrentImageListenerin interfaceCurrentImageListenerUIOptions- Parameters:
currentImageListener- Implementation of image listener ornullto clear listener that has been set previously.
-
setScanUIEventListener
Description copied from interface:ScanUIEventListenerUIOptionsSets implementation ofScanUIEventListenerinterface that will be called;- Specified by:
setScanUIEventListenerin interfaceScanUIEventListenerUIOptions- Parameters:
scanningEventListener- implementation of events listener ornullto clear listener that has been set previously.
-
enableHighResSuccessFrameCapture
public void enableHighResSuccessFrameCapture(boolean enabled) Description copied from interface:HighResSuccessFrameCaptureUIOptionsSets whether to enable capturing high res frames on recognition success. Default isfalse.- Specified by:
enableHighResSuccessFrameCapturein interfaceHighResSuccessFrameCaptureUIOptions- Parameters:
enabled-trueif you wish to enable high res success frame capture
-
setSplashScreenLayoutResourceID
public void setSplashScreenLayoutResourceID(int splashScreenLayoutResourceID) Description copied from interface:SplashScreenUIOptionsDefines the ID of the layout resource that will be used as camera splash screen displayed while camera is being initialized. If not set, default splash screen will be used.- Specified by:
setSplashScreenLayoutResourceIDin interfaceSplashScreenUIOptions- Parameters:
splashScreenLayoutResourceID- ID of the layout resource that will be used as camera splash screen displayed while camera is being initialized.
-
setOcrResultDisplayMode
Description copied from interface:OcrResultDisplayUIOptionsDefines mode in which OCR result will be drawn on camera preview.- Specified by:
setOcrResultDisplayModein interfaceOcrResultDisplayUIOptions- Parameters:
ocrResultDisplayMode- mode in which OCR result will be drawn on camera preview.
-
setShowMrzDetection
public void setShowMrzDetection(boolean showOcrResult) Description copied from interface:MrzDetectionUIOptionsDefines whether detection of MRZ(Machine Readable Zone) will be displayed in UI, default istrue.- Specified by:
setShowMrzDetectionin interfaceMrzDetectionUIOptions- Parameters:
showOcrResult- whether detection of MRZ(Machine Readable Zone) will be displayed in UI.
-
setShowNotSupportedDialog
public void setShowNotSupportedDialog(boolean showNotSupportedDialog) Description copied from interface:DocumentNotSupportedDialogUIOptionsDefines whether Document Not Supported dialog will be displayed in UI, default istrue.- Specified by:
setShowNotSupportedDialogin interfaceDocumentNotSupportedDialogUIOptions- Parameters:
showNotSupportedDialog- whether Document Not Supported dialog will be displayed in UI.
-
setBackSideScanningTimeoutMs
public void setBackSideScanningTimeoutMs(long backSideScanningTimeoutMs) Description copied from interface:BackSideScanningTimeoutUIOptionsSet back side scanning timeout in milliseconds, default is 17 000 milliseconds. If set to 0, dialog will not be shown.- Specified by:
setBackSideScanningTimeoutMsin interfaceBackSideScanningTimeoutUIOptions- Parameters:
backSideScanningTimeoutMs- timeout in milliseconds.
-
setShowTooltipTimeIntervalMs
public void setShowTooltipTimeIntervalMs(long showTooltipTimeIntervalMs) -
getShowTooltipTimeIntervalMs
public long getShowTooltipTimeIntervalMs() -
isLockedToPortrait
protected abstract boolean isLockedToPortrait() -
saveToIntent
@CallSuper public void saveToIntent(@NonNull android.content.Intent intent) Description copied from class:UISettingsSaves this scan activity settings toIntentso it can be passed to the corresponding scan activity. Intent target activity must be set before calling this method, and target activity must be compatible with this settings. DO NOT USE THIS METHOD UNLESS YOU KNOW WHAT YOU ARE DOING. Improper usage will crash your app.- Overrides:
saveToIntentin classUISettings<BlinkIdOverlayController>- Parameters:
intent- Intent to which this scan activity settings should be saved.
-
createOverlayController
@NonNull public BlinkIdOverlayController createOverlayController(@NonNull android.app.Activity activity, @NonNull ScanResultListener scanResultListener) Description copied from class:UISettingsCreates overlay controller and configures it using set values.- Specified by:
createOverlayControllerin classUISettings<BlinkIdOverlayController>
-
createOverlayView
-