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 |
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)
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 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
CleanerScanbotSDKInitializer