Class ScanbotSDKMain
- Namespace
- ScanbotSDK.MAUI
- Assembly
- BarcodeSDK.MAUI.dll
Entry point to Scanbot SDK APIs.
public static class ScanbotSDKMain
- Inheritance
-
ScanbotSDKMain
- Inherited Members
Properties
Barcode
Access the Barcode scanning APIs.
public static IScanbotBarcode Barcode { get; }
Property Value
LicenseInfo
Returns the SDK License info. Should be periodically checked whether the license is still valid or not
public static LicenseInfo LicenseInfo { get; }
Property Value
Methods
CleanupStorageAsync()
Deletes the Storage directory.
public static Task<Result> CleanupStorageAsync()
Returns
Initialize(SdkConfiguration)
The main entry point for Scanbot Barcode SDK. The SDK must be initialized here.
public static LicenseInfo Initialize(SdkConfiguration configuration)
Parameters
configurationSdkConfigurationCustomize the SDK initialization by configuring the required options. This field is mandatory.
Returns
Remarks
If you intend to use the Classic Components, please use the below-mentioned method overload, which configures the classes required for the classic components:
ScanbotSDKMain.Initialize(MauiAppBuilder builder, string licenseKey, ScanbotSdkConfiguration configuration);
Initialize(SdkConfiguration, MauiAppBuilder)
The main entry point for Scanbot Barcode SDK. The SDK must be initialized here. This initializer must be implemented for the usage of Barcode Classic Components.
public static LicenseInfo Initialize(SdkConfiguration configuration, MauiAppBuilder builder)
Parameters
configurationSdkConfigurationCustomize the SDK initialization by configuring the required options. This field is mandatory.
builderMauiAppBuilderThe appBuilder object of type MauiAppBuilder configures the barcode classic component handlers.
Returns
MockCamera(string, bool)
Mock camera preview by using static images as a source for the barcode scanner. This is useful for testing purposes.
public static Result MockCamera(string imageFileUri, bool refreshOnEachFrame = false)
Parameters
imageFileUristringSets the mock image file uri. string object.
refreshOnEachFrameboolEnable or disable refresh on each frame.
Returns
- Result
Result object.