Class ScanbotBarcodeScannerSDK
-
- All Implemented Interfaces:
-
io.scanbot.sdk.persistence.StorageSpaceAware
public final class ScanbotBarcodeScannerSDK implements StorageSpaceAware
Provider for Scanbot Barcode Scanner SDK features.
Typical use case is to create this object in Activity.onCreate 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 ScanbotBarcodeScannerSDK 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.
-
-
Field Summary
Fields Modifier and Type Field Description private final SdkLicenseInfo
licenseInfo
-
Constructor Summary
Constructors Constructor Description ScanbotBarcodeScannerSDK(Activity activity)
ScanbotBarcodeScannerSDK(Service service)
ScanbotBarcodeScannerSDK(Application application)
ScanbotBarcodeScannerSDK(Context context)
-
Method Summary
Modifier and Type Method Description final SdkLicenseInfo
getLicenseInfo()
final ScanbotBarcodeScannerSDKComponent
getScanbotBarcodeScannerSDKComponent()
final ScanbotBarcodeDetector
createBarcodeDetector()
Provides ScanbotBarcodeDetector. final BarcodeDocumentParser
createBarcodeDocumentParser()
Provides BarcodeDocumentParser. final BarcodeFileStorage
createBarcodeFileStorage()
Provides BarcodeFileStorage. final FileIOProcessor
fileIOProcessor()
Provides FileIOProcessor. final BlobManager
createBlobManager()
Provides BlobManager. final BlobFactory
createBlobFactory()
Provides BlobFactory. final PdfImagesExtractor
createPdfImagesExtractor()
Provides PdfImagesExtractor. -
-
Constructor Detail
-
ScanbotBarcodeScannerSDK
ScanbotBarcodeScannerSDK(Activity activity)
-
ScanbotBarcodeScannerSDK
ScanbotBarcodeScannerSDK(Service service)
-
ScanbotBarcodeScannerSDK
ScanbotBarcodeScannerSDK(Application application)
-
ScanbotBarcodeScannerSDK
ScanbotBarcodeScannerSDK(Context context)
-
-
Method Detail
-
getLicenseInfo
final SdkLicenseInfo getLicenseInfo()
-
getScanbotBarcodeScannerSDKComponent
final ScanbotBarcodeScannerSDKComponent getScanbotBarcodeScannerSDKComponent()
-
createBarcodeDetector
final ScanbotBarcodeDetector createBarcodeDetector()
Provides ScanbotBarcodeDetector.
-
createBarcodeDocumentParser
final BarcodeDocumentParser createBarcodeDocumentParser()
Provides BarcodeDocumentParser.
-
createBarcodeFileStorage
final BarcodeFileStorage createBarcodeFileStorage()
Provides BarcodeFileStorage.
-
fileIOProcessor
final FileIOProcessor fileIOProcessor()
Provides FileIOProcessor.
-
createBlobManager
final BlobManager createBlobManager()
Provides BlobManager.
-
createBlobFactory
final BlobFactory createBlobFactory()
Provides BlobFactory.
-
createPdfImagesExtractor
final PdfImagesExtractor createPdfImagesExtractor()
Provides PdfImagesExtractor.
-
-
-
-