Class DocumentCaptureUISettings
java.lang.Object
com.microblink.blinkinput.uisettings.UISettings<DocumentCaptureOverlayController>
com.microblink.blinkinput.uisettings.DocumentCaptureUISettings
- All Implemented Interfaces:
BeepSoundUIOptions,DebugImageListenerUIOptions,SplashScreenUIOptions,StringsUIOptions<DetectionOverlayStrings>,StyleUIOptions
public final class DocumentCaptureUISettings
extends UISettings<DocumentCaptureOverlayController>
implements DebugImageListenerUIOptions, SplashScreenUIOptions, BeepSoundUIOptions, StyleUIOptions, StringsUIOptions<DetectionOverlayStrings>
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentCaptureUISettings(android.content.Intent intent) DocumentCaptureUISettings(DocumentCaptureRecognizerTransferable documentCaptureRecognizerTransferable) -
Method Summary
Modifier and TypeMethodDescriptioncreateOverlayController(android.app.Activity activity, ScanResultListener scanResultListener) Creates overlay controller and configures it using set values.Class<?>Returns target activity.voidsaveToIntent(android.content.Intent intent) Saves this scan activity settings toIntentso it can be passed to the corresponding scan activity.final voidsetBeepSoundResourceID(int beepSoundResourceID) Defines the resource ID of the sound to be played when recognition is successful.final voidsetDebugImageListener(DebugImageListener debugImageListener) Sets implementation ofDebugImageListenerinterface that will obtain images that are being processed.voidsetOverlayViewStyle(int styleResourceID) Provide your own style to replace default icons and colors.final voidsetSplashScreenLayoutResourceID(int splashScreenLayoutResourceID) Defines the ID of the layout resource that will be used as camera splash screen displayed while camera is being initialized.voidsetStrings(DetectionOverlayStrings strings) Sets strings that will be used in the UI.Methods inherited from class com.microblink.blinkinput.uisettings.UISettings
getActivityTheme, getFilterTouchesWhenObscured, getUsingFlagSecure, setActivityTheme, setCameraSettings, setFilterTouchesWhenObscured, setUsingFlagSecure
-
Constructor Details
-
DocumentCaptureUISettings
public DocumentCaptureUISettings(@NonNull DocumentCaptureRecognizerTransferable documentCaptureRecognizerTransferable) -
DocumentCaptureUISettings
public DocumentCaptureUISettings(@NonNull android.content.Intent intent)
-
-
Method Details
-
getDocumentCaptureRecognizerTransferable
-
getTargetActivity
Description copied from class:UISettingsReturns target activity. Concrete settings can be used only with the corresponding activity. This method is public for convenience when you are not able to useActivityRunner. DO NOT USE THIS METHOD UNLESS YOU KNOW WHAT YOU ARE DOING. Improper usage will crash your app.- Specified by:
getTargetActivityin classUISettings<DocumentCaptureOverlayController>- Returns:
- target activity.
-
saveToIntent
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<DocumentCaptureOverlayController>- Parameters:
intent- Intent to which this scan activity settings should be saved.
-
setOverlayViewStyle
public void setOverlayViewStyle(@StyleRes int styleResourceID) Provide your own style to replace default icons and colors. Supports attributes from R.styleable.DocumentCaptureDetectionOverlay- Specified by:
setOverlayViewStylein interfaceStyleUIOptions- Parameters:
styleResourceID- your style
-
setStrings
Sets strings that will be used in the UI.- Specified by:
setStringsin interfaceStringsUIOptions<DetectionOverlayStrings>- Parameters:
strings- strings that will be used
-
setBeepSoundResourceID
public final void setBeepSoundResourceID(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.
-
setSplashScreenLayoutResourceID
public final void setSplashScreenLayoutResourceID(@LayoutRes 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.
-
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.
-
createOverlayController
@NonNull public DocumentCaptureOverlayController 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<DocumentCaptureOverlayController>
-