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 T
useCameraXRtuUi(Boolean enable)
Controls whether the new Camera X based View will be used in Ready to Use UI components. abstract T
withLogging(Boolean useLog, Boolean enableNativeLogging)
Enables or disables logs in Scanbot SDK. abstract T
logger(Logger logger)
Adjust this parameter to specify which Logger should be used. abstract SdkLicenseInfo
initialize(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.
false
by 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
-true
to enable logging,false
to disable loggingenableNativeLogging
- settrue
if 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.
-
-
-
-