Table of Contents

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

IScanbotBarcode

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

LicenseInfo

Methods

CleanupStorageAsync()

Deletes the Storage directory.

public static Task<Result> CleanupStorageAsync()

Returns

Task<Result>

Initialize(SdkConfiguration)

The main entry point for Scanbot Barcode SDK. The SDK must be initialized here.

public static LicenseInfo Initialize(SdkConfiguration configuration)

Parameters

configuration SdkConfiguration

Customize the SDK initialization by configuring the required options. This field is mandatory.

Returns

LicenseInfo

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

configuration SdkConfiguration

Customize the SDK initialization by configuring the required options. This field is mandatory.

builder MauiAppBuilder

The appBuilder object of type MauiAppBuilder configures the barcode classic component handlers.

Returns

LicenseInfo

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

imageFileUri string

Sets the mock image file uri. string object.

refreshOnEachFrame bool

Enable or disable refresh on each frame.

Returns

Result

Result object.