public abstract class BasicScanUISettings extends UISettings implements DebugImageListenerUIOptions, SplashScreenUIOptions, BeepSoundUIOptions, HighResSuccessFrameCaptureUIOptions, HelpIntentUIOptions
| Modifier | Constructor and Description |
|---|---|
protected |
BasicScanUISettings(android.content.Intent intent) |
protected |
BasicScanUISettings(RecognizerBundle recognizerBundle) |
| Modifier and Type | Method and Description |
|---|---|
BasicOverlayController |
createOverlayController(android.app.Activity activity,
ScanResultListener scanResultListener)
Creates overlay controller and configures it using set values.
|
protected abstract BasicOverlaySettings.Builder |
createOverlaySettingsBuilder() |
void |
enableHighResSuccessFrameCapture(boolean enabled)
Sets whether to enable capturing high res frames on recognition success.
|
RecognizerBundle |
getRecognizerBundle()
Returns the
RecognizerBundle containing recognizers that will be used for processing. |
void |
saveToIntent(android.content.Intent intent)
Saves this scan activity settings to
Intent so it can be passed to the
corresponding scan activity. |
void |
setBeepSoundResourceID(int beepSoundResourceID)
Defines the resource ID of the sound to be played when recognition is successful.
|
void |
setDebugImageListener(DebugImageListener debugImageListener)
Sets implementation of
DebugImageListener interface that will obtain images that are
being processed. |
void |
setForcedOrientation(OverlayOrientation orientation)
Defines forced overlay orientation.
|
void |
setHelpIntent(android.content.Intent helpIntent)
Defines intent for help activity called when help should be shown.
|
void |
setRegionOfInterestRotatable(boolean regionOfInterestRotatable)
Defines whether ROI (Region of Interest) will be rotated with user interface.
|
void |
setScanRegionOfInterest(Rectangle scanRegionOfInterest)
Sets the scanning ROI (Region of Interest) that will be scanned.
|
void |
setSplashScreenLayoutResourceID(int splashScreenLayoutResourceID)
Defines the ID of the layout resource that will be used as camera splash screen displayed
while camera is being initialized.
|
getActivityTheme, getFilterTouchesWhenObscured, getTargetActivity, getUsingFlagSecure, setActivityTheme, setCameraSettings, setFilterTouchesWhenObscured, setUsingFlagSecureprotected BasicScanUISettings(@NonNull
RecognizerBundle recognizerBundle)
protected BasicScanUISettings(@NonNull
android.content.Intent intent)
@NonNull public RecognizerBundle getRecognizerBundle()
RecognizerBundle containing recognizers that will be used for processing.RecognizerBundle containing recognizers that will be used for processing.public final void saveToIntent(@NonNull
android.content.Intent intent)
UISettingsIntent so 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.saveToIntent in class UISettingsintent - Intent to which this scan activity settings should be saved.public final void setScanRegionOfInterest(@Nullable
Rectangle scanRegionOfInterest)
scanRegionOfInterest - scanning ROI.RecognizerRunnerView.setScanningRegion(Rectangle, boolean)public final void setRegionOfInterestRotatable(boolean regionOfInterestRotatable)
false.regionOfInterestRotatable - whether ROI (Region of Interest) will be rotated with user
interface.RecognizerRunnerView.setScanningRegion(Rectangle, boolean)public final void setBeepSoundResourceID(int beepSoundResourceID)
BeepSoundUIOptionssetBeepSoundResourceID in interface BeepSoundUIOptionsbeepSoundResourceID - resource ID of the sound to be played when recognition is successful.public final void setSplashScreenLayoutResourceID(@LayoutRes
int splashScreenLayoutResourceID)
SplashScreenUIOptionssetSplashScreenLayoutResourceID in interface SplashScreenUIOptionssplashScreenLayoutResourceID - ID of the layout resource that will be used as camera
splash screen displayed while camera is being initialized.public final void setDebugImageListener(@Nullable
DebugImageListener debugImageListener)
DebugImageListenerUIOptionsDebugImageListener interface that will obtain images that are
being processed. DebugImageListener will receive all possible debug images that become
available during recognition process.setDebugImageListener in interface DebugImageListenerUIOptionsdebugImageListener - Implementation of debug image listener or null to clear listener
that has been set previously.public void enableHighResSuccessFrameCapture(boolean enabled)
HighResSuccessFrameCaptureUIOptionsfalse.enableHighResSuccessFrameCapture in interface HighResSuccessFrameCaptureUIOptionsenabled - true if you wish to enable high res success frame capturepublic void setForcedOrientation(@Nullable
OverlayOrientation orientation)
orientation - forced overlay orientation.for more details.public final void setHelpIntent(@Nullable
android.content.Intent helpIntent)
HelpIntentUIOptionssetHelpIntent in interface HelpIntentUIOptionshelpIntent - intent for help activity called when help should be shown.@NonNull public BasicOverlayController createOverlayController(@NonNull android.app.Activity activity, @NonNull ScanResultListener scanResultListener)
UISettingscreateOverlayController in class UISettings@NonNull protected abstract BasicOverlaySettings.Builder createOverlaySettingsBuilder()