Skip to main content

Custom UI scanning modes

Scanning a single barcode

You can utilize the BarcodeScannerView class from xmlns:classicComponent="clr-namespace:ScanbotSDK.MAUI.Barcode.ClassicComponent;assembly=ScanbotSDK.Shared" to integrate barcode scanning functionality into your application seamlessly.

This component encapsulates the barcode scanning feature within a single UI component.

BarcodeClassicComponentPage.xaml
loading...

In the BarcodeClassicComponentPage class, the CameraView component is configured for barcode scanning.

BarcodeClassicComponentPage.xaml.cs
loading...

For a fully functional example, refer to our example app scanbot-barcode-sdk-maui-example on GitHub.

Scan & Count

Use the class BarcodeScanAndCountView from xmlns:classicComponent="clr-namespace:ScanbotSDK.MAUI.ClassicComponent;assembly=BarcodeSDK.MAUI", which encapsulates the Scan & Count feature in one UI component.

When using the BarcodeScanAndCountView component, it's not required to work directly with the camera view or to set up a finder view separately.

To start using the feature, add the following view into your XAML:

BarcodeScanAndCountClassicComponentPage.xaml
loading...

The cameraView component in BarcodeScanAndCountClassicComponentPage handles barcode scanning and counting smoothly. It manages scan results, visual settings, and detection control.

When the page appears, scanning starts, and it stops when the page disappears. Also, it handles button states for user interaction.

BarcodeScanAndCountClassicComponentPage.xaml.cs
loading...

To enhance the configuration of the overlay with a manual SelectionOverlay, you can modify the above code by adding additional parameters and settings according to your needs.

BarcodeScanAndCountClassicComponentPage.xaml.cs
loading...

For a fully functional example, refer to our example app scanbot-barcode-sdk-maui-example on GitHub.

Scanning multiple barcodes

If you need to scan multiple barcodes simultaneously, you can configure the SDK to detect and extract all barcodes visible in the live view. This functionality can be complemented with an AR Overlay for visually highlighting the barcodes in view.

Scanning multiple barcodes with the .NET MAUI Barcode Scanner

Scanning multiple barcodes
loading...

Scanning tiny barcodes

Are you dealing with very small barcodes like those typically found on electrical components? In this case, you can explicitly set a short focus distance for the camera. This adjustment allows the device to be moved very close to the small barcodes without losing focus. This improves the sharpness of the image and the scanning performance.

note

This setting does not affect any devices that have an "Ultra Wide" camera since the camera switches automatically to the "Ultra Wide" when focusing objects that are near the camera.

Scanning tiny barcodes with the .NET MAUI Barcode Scanner

Scanning tiny barcodes
loading...

Scanning distant barcodes

In scenarios where barcodes are positioned in hard-to-reach locations, you can significantly improve the scanning experience by using the camera’s optical zoom functionality. The Scanbot SDK allows you to enable and control both the optical and digital zoom. This ensures a suitable image crop for distant barcodes.

Scanning distant barcodes with the .NET MAUI Barcode Scanner

Scanning distant barcodes
loading...

AR Overlay scanning modes

Providing an extra layer of feedback for the user in the live view is useful for a range of scanning use cases. With the Barcode Scanner SDK's AR Overlay, you can highlight barcodes to provide feedback on scanned barcodes or locate specific items.

Refer to the AR Overlay section to learn more.

Want to scan longer than one minute?

Generate a free trial license to test the Scanbot SDK thoroughly.

Get free trial license