Class ScanbotBarcodeScannerSDK
-
- All Implemented Interfaces:
-
io.scanbot.sdk.LicensableSdk
,io.scanbot.sdk.barcode.BarcodeScanningSdk
,io.scanbot.sdk.persistence.StorageSpaceAware
public final class ScanbotBarcodeScannerSDK implements StorageSpaceAware, LicensableSdk, BarcodeScanningSdk
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 SdkLicenseInfo
getLicenseInfo()
Provides full info of the license current state. final ScanbotBarcodeScannerSDKComponent
getScanbotBarcodeScannerSDKComponent()
ScanbotBarcodeDetector
createBarcodeDetector()
Provides ScanbotBarcodeDetector. BarcodeDocumentParser
createBarcodeDocumentParser()
Provides BarcodeDocumentParser. BarcodeFileStorage
createBarcodeFileStorage()
Provides BarcodeFileStorage. final FileIOProcessor
fileIOProcessor()
Provides FileIOProcessor. 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
SdkLicenseInfo getLicenseInfo()
Provides full info of the license current state. 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.
-
getScanbotBarcodeScannerSDKComponent
final ScanbotBarcodeScannerSDKComponent getScanbotBarcodeScannerSDKComponent()
-
createBarcodeDetector
ScanbotBarcodeDetector createBarcodeDetector()
Provides ScanbotBarcodeDetector.
-
createBarcodeDocumentParser
BarcodeDocumentParser createBarcodeDocumentParser()
Provides BarcodeDocumentParser.
-
createBarcodeFileStorage
BarcodeFileStorage createBarcodeFileStorage()
Provides BarcodeFileStorage.
-
fileIOProcessor
final FileIOProcessor fileIOProcessor()
Provides FileIOProcessor.
-
createPdfImagesExtractor
final PdfImagesExtractor createPdfImagesExtractor()
Provides PdfImagesExtractor.
-
-
-
-