public class ScanbotSDK
Provider for Scanbot SDK features.
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 |
|---|---|
static net.doo.snap.injection.SdkComponent |
sdkComponent |
| Constructor and Description |
|---|
ScanbotSDK() |
ScanbotSDK() |
ScanbotSDK() |
ScanbotSDK() |
| 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.
|
net.doo.snap.injection.SdkComponent |
getSdkComponent() |
boolean |
isLicenseActive()
Provides the status of the license. Returned value is consistent during lifetime of the process, i.e. if license is active at application start-up it will remain that way until app will be killed.
|
boolean |
isLicenseValid()
Provides the status of the license. Returned value is consistent during lifetime of the process, i.e. if license is active at application start-up it will remain that way until app will be killed.
|
MRZScanner |
mrzScanner()
Provides MRZScanner.
|
PageFactory |
pageFactory()
Provides PageFactory.
|
PayFormScanner |
payFormScanner()
Provides net.doo.snap.payformscanner.PayFormScanner.
|
TextRecognition |
textRecognition()
Provides functionality for recognize text. Should be called for each case of text recognition.
|
io.scanbot.tiffwriter.TIFFWriter |
tiffWriter()
Provides io.scanbot.tiffwriter.TIFFWriter.
|
public ScanbotSDK()
public ScanbotSDK()
public ScanbotSDK()
public ScanbotSDK()
public net.doo.snap.injection.SdkComponent getSdkComponent()
public boolean isLicenseActive()
Provides the status of the license. Returned value is consistent during lifetime of the process, i.e. if license is active at application start-up it will remain that way until app will be killed.
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()
Provides the status of the license. Returned value is consistent during lifetime of the process, i.e. if license is active at application start-up it will remain that way until app will be killed.
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()
Provides DocumentProcessor.
nullpublic TextRecognition textRecognition()
Provides functionality for recognize text. Should be called for each case of text recognition.
public Cleaner cleaner()
Provides Cleaner.
nullpublic DocumentDraftExtractor documentDraftExtractor()
Provides DocumentDraftExtractor.
nullpublic PageFactory pageFactory()
Provides PageFactory.
nullpublic BlobManager blobManager()
Provides BlobManager.
nullpublic BlobFactory blobFactory()
Provides BlobFactory.
nullpublic PayFormScanner payFormScanner()
Provides net.doo.snap.payformscanner.PayFormScanner.
nullpublic MRZScanner mrzScanner()
Provides MRZScanner.
nullpublic DCScanner dcScanner()
Provides DCScanner.
nullpublic ScanbotBarcodeDetector barcodeDetector()
Provides ScanbotBarcodeDetector.
nullpublic io.scanbot.tiffwriter.TIFFWriter tiffWriter()
Provides io.scanbot.tiffwriter.TIFFWriter.
nullpublic PageFileStorage getPageFileStorage()
Provides PageFileStorage.
null