Getting started with the .NET MAUI Barcode Scanner SDK's Custom UI
Permission validation
Custom UI Components do not automatically validate camera access permissions. It's up to developers to request and secure these permissions within their applications.
Before integrating camera functionalities, ensure that your app has obtained the necessary permissions to provide users with a seamless experience.
- MAUI
- .NET Android
- .NET iOS
For MAUI applications, see our example on how to request camera permissions to ensure smooth operation:
loading...
Since Android 6.0 (API level 23) you also have to implement a suitable permission requesting and handling at runtime. For more details, see the Android docs "Request App Permissions"
private string[] permissions = new string[] { Manifest.Permission.Camera };
loading...
For .NET iOS applications, see our example on how to request camera permissions to ensure smooth operation:
loading...
For a fully functional example, see our example app scanbot-barcode-sdk-maui-example on GitHub.
BarcodeScannerView
BarcodeScannerView exposes a wide range of properties for configuring the scanner's behavior and appearance.
The example above covers some commonly used options. For a complete list of available properties, methods, events, and detailed descriptions, refer to the below mentioned API reference links.
BarcodeScannerView extends BaseBarcodeScannerView, so its complete API surface is split across both classes.
For a full list of available properties, methods, and events, refer to the API references for both BarcodeScannerView and BaseBarcodeScannerView.
API reference:
BarcodeScanAndCountView
BarcodeScanAndCountView exposes a wide range of properties for configuring the scanner's behavior and appearance.
The example above covers some commonly used options. For a complete list of available properties, methods, events, and detailed descriptions, refer to the below mentioned API reference links.
BarcodeScanAndCountView extends BaseBarcodeScannerView, so its complete API surface is split across both classes.
For a full list of available properties, methods, and events, refer to the API references for both BarcodeScanAndCountView and BaseBarcodeScannerView.
API reference:
Want to scan longer than one minute?
Generate a free trial license to test the Scanbot SDK thoroughly.
Get free trial licenseScanbot SDK is part of the Apryse SDK product family
A mobile scan is just the start. With Apryse SDKs, you can expand mobile workflows into full cross‑platform document processing. Whether you need to edit PDFs, add secure digital signatures, or use a fast, customizable document viewer and editor, Apryse gives you the tools to build powerful features quickly.
Learn more
