public class ScanbotSDK
extends java.lang.Object
Typical use case is to create this object in Activity.onCreate(Bundle) or
Service.onCreate(), but it's allowed to create it during any other point of lifecycle
before onDestroy.
Note that each instance stores reference to given context, so it should not be cached statically.
All necessary caching is already done by ScanbotSDK itself - some methods might return
same instance repeatedly.
Some insight - Scanbot uses Dependency Injection internally, but we do not want to expose it to users of the library to ensure that changes in DI implementation won't affect users of the library.
| Modifier and Type | Field and Description |
|---|---|
protected static SdkComponent |
sdkComponent |
| Modifier | Constructor and Description |
|---|---|
|
ScanbotSDK(android.app.Activity activity) |
|
ScanbotSDK(android.app.Application application) |
protected |
ScanbotSDK(android.content.Context context) |
|
ScanbotSDK(android.app.Service service) |
| Modifier and Type | Method and Description |
|---|---|
ScanbotBarcodeDetector |
barcodeDetector()
Provides
ScanbotBarcodeDetector. |
BlobFactory |
blobFactory()
Provides
BlobFactory. |
BlobManager |
blobManager()
Provides
BlobManager. |
Cleaner |
cleaner()
Provides
Cleaner. |
DCScanner |
dcScanner()
Provides
DCScanner. |
DocumentDraftExtractor |
documentDraftExtractor()
Provides
DocumentDraftExtractor. |
DocumentProcessor |
documentProcessor()
Provides
DocumentProcessor. |
PageFileStorage |
getPageFileStorage()
Provides
PageFileStorage. |
SdkComponent |
getSdkComponent() |
boolean |
isLicenseActive()
Provides the status of the license.
|
boolean |
isLicenseValid()
Provides the status of the license.
|
MRZScanner |
mrzScanner()
Provides
MRZScanner. |
PageFactory |
pageFactory()
Provides
PageFactory. |
PayFormScanner |
payFormScanner()
Provides
PayFormScanner. |
TextRecognition |
textRecognition()
Provides functionality for recognize text.
|
TIFFWriter |
tiffWriter()
Provides
io.scanbot.tiffwriter.TIFFWriter. |
public ScanbotSDK(android.app.Activity activity)
public ScanbotSDK(android.app.Service service)
public ScanbotSDK(android.app.Application application)
protected ScanbotSDK(android.content.Context context)
public SdkComponent getSdkComponent()
public boolean isLicenseActive()
true if Scanbot SDK license is active and all features can be used normally.
false if license is not active and usage of SDK features will result in either
RuntimeException or no-op.public boolean isLicenseValid()
true if Scanbot SDK license is active and all features can be used normally.
false if license is not active and usage of SDK features will result in either
RuntimeException or no-op.public DocumentProcessor documentProcessor()
DocumentProcessor.DocumentProcessor. Never nullpublic TextRecognition textRecognition()
TextRecognition. Should be acquired for each case of text recognizing.public DocumentDraftExtractor documentDraftExtractor()
DocumentDraftExtractor.DocumentDraftExtractor. Never nullpublic PageFactory pageFactory()
PageFactory.PageFactory. Never nullpublic BlobManager blobManager()
BlobManager.BlobManager. Never nullpublic BlobFactory blobFactory()
BlobFactory.BlobFactory. Never nullpublic PayFormScanner payFormScanner()
PayFormScanner.PayFormScanner. Never nullpublic MRZScanner mrzScanner()
MRZScanner.MRZScanner. Never nullpublic DCScanner dcScanner()
DCScanner.DCScanner. Never nullpublic ScanbotBarcodeDetector barcodeDetector()
ScanbotBarcodeDetector.ScanbotBarcodeDetector. Never nullpublic TIFFWriter tiffWriter()
io.scanbot.tiffwriter.TIFFWriter.io.scanbot.tiffwriter.TIFFWriter. Never nullpublic PageFileStorage getPageFileStorage()
PageFileStorage.PageFileStorage. Never null