Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yushulx/xamarin-forms-barcode-qrcode-scanner
https://github.com/yushulx/xamarin-forms-barcode-qrcode-scanner
android barcode barcode-scanner ios qrcode qrcode-scanner xamarin-forms
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/yushulx/xamarin-forms-barcode-qrcode-scanner
- Owner: yushulx
- License: mit
- Created: 2022-07-01T08:36:34.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-11T08:07:03.000Z (over 2 years ago)
- Last Synced: 2024-01-27T00:49:37.215Z (12 months ago)
- Topics: android, barcode, barcode-scanner, ios, qrcode, qrcode-scanner, xamarin-forms
- Language: C#
- Homepage:
- Size: 2.94 MB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Xamarin Forms Barcode QR Code Scanner
This sample demonstrates how to scan barcode and QR code from image file and live video stream using [Xamarin.Forms Custom Renderers](https://docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/custom-renderer/) and [Dynamsoft Barcode Reader SDK](https://www.dynamsoft.com/barcode-reader/overview/).
## Usage
1. Import the project to `Visual Studio`.
2. Apply for a [30-day free trial license](https://www.dynamsoft.com/customer/license/trialLicense?product=dbr) and update the following code in [MainPage.xaml.cs](https://github.com/yushulx/xamarin-forms-barcode-qrcode-scanner/blob/main/CustomRenderer/MainPage.xaml.cs).```csharp
_barcodeQRCodeService.InitSDK("DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAxLTE2NDk4Mjk3OTI2MzUiLCJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSIsInNlc3Npb25QYXNzd29yZCI6IndTcGR6Vm05WDJrcEQ5YUoifQ==");
```
3. Set `android` or `iOS` as the startup project.
4. Connect your devices and run the project.![Xamarin Forms barcode QR code scanner](https://www.dynamsoft.com/codepool/img/2022/07/xamarin-forms-barcode-qrcode-scanner.jpg)