Class FieldByFieldUISettings
java.lang.Object
com.microblink.photopay.uisettings.UISettings<FieldByFieldOverlayController>
com.microblink.photopay.uisettings.FieldByFieldUISettings
- All Implemented Interfaces:
- CurrentImageListenerUIOptions,- DebugImageListenerUIOptions,- HelpIntentUIOptions,- OcrResultDisplayUIOptions,- SplashScreenUIOptions,- SuccessfulImageListenerUIOptions
public class FieldByFieldUISettings
extends UISettings<FieldByFieldOverlayController>
implements HelpIntentUIOptions, OcrResultDisplayUIOptions, DebugImageListenerUIOptions, CurrentImageListenerUIOptions, SuccessfulImageListenerUIOptions, SplashScreenUIOptions
Scan settings for 
FieldByFieldScanActivity.- 
Constructor SummaryConstructorsConstructorDescriptionFieldByFieldUISettings(android.content.Intent intent) FieldByFieldUISettings(FieldByFieldBundle fieldByFieldBundle) 
- 
Method SummaryModifier and TypeMethodDescriptioncreateOverlayController(android.app.Activity activity, ScanResultListener scanResultListener) Creates overlay controller and configures it using set values.Returns theFieldByFieldBundlecontaining scan elements with parsers that will be used for processing.Class<?>Returns target activity.final voidsaveToIntent(android.content.Intent intent) Saves this scan activity settings toIntentso it can be passed to the corresponding scan activity.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.voidsetHelpIntent(android.content.Intent helpIntent) Defines intent for help activity called when help should be shown.voidsetInfiniteLoopScan(boolean infiniteLoopScan) If set totrue, scan activity will never return.voidsetOcrResultDisplayMode(OcrResultDisplayMode ocrResultDisplayMode) Defines mode in which OCR result will be drawn on camera preview.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.voidsetSuccessfulImageListener(SuccessfulImageListener successfulImageListener) Sets implementation ofSuccessfulImageListenerinterface that will obtain images from the successful scan.Methods inherited from class com.microblink.photopay.uisettings.UISettingsgetActivityTheme, getFilterTouchesWhenObscured, getUsingFlagSecure, setActivityTheme, setCameraSettings, setFilterTouchesWhenObscured, setUsingFlagSecure
- 
Constructor Details- 
FieldByFieldUISettings
- 
FieldByFieldUISettingspublic FieldByFieldUISettings(@NonNull android.content.Intent intent) 
 
- 
- 
Method Details- 
getFieldByFieldBundleReturns theFieldByFieldBundlecontaining scan elements with parsers that will be used for processing.- Returns:
- the FieldByFieldBundlecontaining scan elements with parsers that will be used for processing.
 
- 
setHelpIntentpublic void setHelpIntent(@Nullable android.content.Intent helpIntent) Description copied from interface:HelpIntentUIOptionsDefines intent for help activity called when help should be shown. If not set or set to null, help button will not be shown in the scanning UI.- Specified by:
- setHelpIntentin interface- HelpIntentUIOptions
- Parameters:
- helpIntent- intent for help activity called when help should be shown.
 
- 
saveToIntentpublic final 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 class- UISettings<FieldByFieldOverlayController>
- Parameters:
- intent- Intent to which this scan activity settings should be saved.
 
- 
setInfiniteLoopScanpublic void setInfiniteLoopScan(boolean infiniteLoopScan) If set totrue, scan activity will never return. Default isfalse.- Parameters:
- infiniteLoopScan- whether to activate infinite loop mode or not.
 
- 
setOcrResultDisplayModeDescription copied from interface:OcrResultDisplayUIOptionsDefines mode in which OCR result will be drawn on camera preview.- Specified by:
- setOcrResultDisplayModein interface- OcrResultDisplayUIOptions
- Parameters:
- ocrResultDisplayMode- mode in which OCR result will be drawn on camera preview.
 
- 
setDebugImageListenerDescription 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 interface- DebugImageListenerUIOptions
- Parameters:
- debugImageListener- Implementation of debug image listener or- nullto clear listener that has been set previously.
 
- 
setCurrentImageListenerDescription 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 interface- CurrentImageListenerUIOptions
- Parameters:
- currentImageListener- Implementation of image listener or- nullto clear listener that has been set previously.
 
- 
setSuccessfulImageListenerDescription copied from interface:SuccessfulImageListenerUIOptionsSets implementation ofSuccessfulImageListenerinterface that will obtain images from the successful scan.SuccessfulImageListenerwill receive image when recognition process has successfully scanned an item and has a successful scan image to return.- Specified by:
- setSuccessfulImageListenerin interface- SuccessfulImageListenerUIOptions
- Parameters:
- successfulImageListener- Implementation of image listener or- nullto clear listener that has been set previously.
 
- 
setSplashScreenLayoutResourceIDpublic 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 interface- SplashScreenUIOptions
- Parameters:
- splashScreenLayoutResourceID- ID of the layout resource that will be used as camera splash screen displayed while camera is being initialized.
 
- 
getTargetActivityDescription 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 class- UISettings<FieldByFieldOverlayController>
- Returns:
- target activity.
 
- 
createOverlayController@NonNull public FieldByFieldOverlayController 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 class- UISettings<FieldByFieldOverlayController>
 
 
-