Interface ScanbotSdkInitializerCommonApi
-
- All Implemented Interfaces:
public interface ScanbotSdkInitializerCommonApi<T extends SdkInitializer>Might define some API that is 100% identical between Bundle and Barcode SDKs.
-
-
Method Summary
Modifier and Type Method Description abstract TuseCameraXRtuUi(Boolean enable)Controls whether the new Camera X based View will be used in Ready to Use UI components. abstract TwithLogging(Boolean useLog, Boolean enableNativeLogging)Enables or disables logs in Scanbot SDK. abstract Tlogger(Logger logger)Adjust this parameter to specify which Logger should be used. abstract SdkLicenseInfoinitialize(Application application)Initializes Scanbot SDK library. -
-
Method Detail
-
useCameraXRtuUi
abstract T useCameraXRtuUi(Boolean enable)
Controls whether the new Camera X based View will be used in Ready to Use UI components.
trueby default.
-
withLogging
abstract T withLogging(Boolean useLog, Boolean enableNativeLogging)
Enables or disables logs in Scanbot SDK.
Logs are printed into LogCat as well as saved on the device. You can find them in 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, so it is possible to change logging settings before initializing the SDK.
- Parameters:
useLog-trueto enable logging,falseto disable loggingenableNativeLogging- settrueif logging in C++ native core should be enabled.
-
logger
abstract T logger(Logger logger)
Adjust this parameter to specify which Logger should be used. To set a custom logger withLogging must be set to
true.- Parameters:
logger- implementation of Logger.
-
initialize
abstract SdkLicenseInfo initialize(Application application)
Initializes Scanbot SDK library. Can be called only once.
-
-
-
-