public class ScanbotSDKInitializer
extends java.lang.Object
initialize(Application).
Can be initialized only once.| Constructor and Description |
|---|
ScanbotSDKInitializer() |
| Modifier and Type | Method and Description |
|---|---|
ScanbotSDKInitializer |
documentDraftExtractor(DocumentDraftExtractor extractor)
Adjust this parameter to specify snapped pages should be combined into documents and in which
format
|
void |
initialize(android.app.Application application)
Initializes Scanbot SDK library
|
ScanbotSDKInitializer |
license(android.app.Application application,
java.lang.String license)
Set Scanbot SDK license
|
ScanbotSDKInitializer |
logger(Logger logger)
Adjust this parameter to specify which
Logger should be used. |
ScanbotSDKInitializer |
unreferencedSourcesProvider(UnreferencedSourcesProvider provider)
Adjust this parameter to specify which files
Cleaner
can safely delete during clean up |
ScanbotSDKInitializer |
withLogging(boolean useLog)
Enables or disables logs in Scanbot SDK.
|
public ScanbotSDKInitializer withLogging(boolean useLog)
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 initialize(Application), so it is possible to
change logging settings before initializing the SDK.
useLog - true to enable logging
false to disable loggingScanbotSDKInitializer, so calls can be chainedpublic ScanbotSDKInitializer license(android.app.Application application, java.lang.String license)
public void initialize(android.app.Application application)
public ScanbotSDKInitializer documentDraftExtractor(DocumentDraftExtractor extractor)
extractor - algorithm to extract array of DocumentDraft
from SnappingDraftScanbotSDKInitializerpublic ScanbotSDKInitializer unreferencedSourcesProvider(UnreferencedSourcesProvider provider)
Cleaner
can safely delete during clean upprovider - provides unreferenced pages and documents which can be safely deleted by
CleanerScanbotSDKInitializerpublic ScanbotSDKInitializer logger(Logger logger)
Logger should be used.
To set a custom logger withLogging(boolean) must be set to truelogger - implementation of LoggerScanbotSDKInitializer