public class ScanbotSDKInitializer
| Modifier and Type | Field and Description |
|---|---|
static boolean |
initialized |
Logger |
logger |
boolean |
useLog |
| Modifier and Type | Method and Description |
|---|---|
ScanbotSDKInitializer |
documentDraftExtractor()
Adjust this parameter to specify snapped pages should be combined into documents and in which format
|
void |
initialize()
Initializes Scanbot SDK library
|
static boolean |
isInitialized() |
ScanbotSDKInitializer |
languageClassifierBlobPath()
Set Scanbot SDK language classifier blob path
|
ScanbotSDKInitializer |
license()
Set Scanbot SDK license
|
ScanbotSDKInitializer |
logger()
Adjust this parameter to specify which Logger should be used. To set a custom logger
must be set to true |
ScanbotSDKInitializer |
ocrBlobsPath()
Set Scanbot SDK OCR blobs path
|
ScanbotSDKInitializer |
unreferencedSourcesProvider()
Adjust this parameter to specify which files net.doo.snap.persistence.cleanup.Cleaner can safely delete during clean up
|
ScanbotSDKInitializer |
useBarcodeDetector()
Adjust this parameter to specify which ScanbotBarcodeDetector should be used. By default -
ScanbotBarcodeDetector.BarcodeDetectorType#ZXing |
ScanbotSDKInitializer |
withLogging()
Enables or disables logs in Scanbot SDK. Logs are printed into LogCat as well as saved on the device. You can find them in
Environment#getExternalStorageDirectory()/debug_logs/[package_name]. Usually it is /sdcard/debug_logs/[package_name] By default all logs are disabled. If you're using logging, consider switching it off for production builds for security and performance reasons. This method must be called before , so it is possible to change logging settings before initializing the SDK. |
public static boolean initialized
public boolean useLog
public Logger logger
public ScanbotSDKInitializer withLogging()
Enables or disables logs in Scanbot SDK.
Logs are printed into LogCat as well as saved on the device. You can find them in Environment#getExternalStorageDirectory()/debug_logs/[package_name]. Usually it is /sdcard/debug_logs/[package_name]
By default all logs are disabled. If you're using logging, consider switching it off for production builds for security and performance reasons.
This method must be called before , so it is possible to change logging settings before initializing the SDK.ScanbotSDKInitializer.initialize
ScanbotSDKInitializer.initializepublic ScanbotSDKInitializer license()
Set Scanbot SDK license
public ScanbotSDKInitializer ocrBlobsPath()
Set Scanbot SDK OCR blobs path
public ScanbotSDKInitializer languageClassifierBlobPath()
Set Scanbot SDK language classifier blob path
public void initialize()
Initializes Scanbot SDK library
public static boolean isInitialized()
true if SDK initialized, false - otherwisepublic ScanbotSDKInitializer documentDraftExtractor()
Adjust this parameter to specify snapped pages should be combined into documents and in which format
public ScanbotSDKInitializer unreferencedSourcesProvider()
Adjust this parameter to specify which files net.doo.snap.persistence.cleanup.Cleaner can safely delete during clean up
public ScanbotSDKInitializer logger()
Adjust this parameter to specify which Logger should be used. To set a custom logger must be set to ScanbotSDKInitializer.withLoggingtrue
ScanbotSDKInitializer.withLoggingpublic ScanbotSDKInitializer useBarcodeDetector()
Adjust this parameter to specify which ScanbotBarcodeDetector should be used. By default - ScanbotBarcodeDetector.BarcodeDetectorType#ZXing