Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QR code reading stopped working unexpectedly #194

Open
cfmazo opened this issue Jul 26, 2024 · 0 comments
Open

QR code reading stopped working unexpectedly #194

cfmazo opened this issue Jul 26, 2024 · 0 comments

Comments

@cfmazo
Copy link

cfmazo commented Jul 26, 2024

After using my application for a few days, the QR reading stopped working, I am using the ZXing.net.maui.controls library.

file xaml

<zxing:CameraBarcodeReaderView x:Name="barcodeReader" Margin="10" WidthRequest="200" HeightRequest="200" IsDetecting="True" IsTorchOn="True" BarcodesDetected="CameraBarcodeReaderView_BarcodesDetected" />

file c#
private void CameraBarcodeReaderView_BarcodesDetected(object sender, ZXing.Net.Maui.BarcodeDetectionEventArgs e)
{
Dispatcher.Dispatch((Action)(async () =>
{
string valor = $"{e.Results[0].Value} {e.Results[0].Format}";
}));
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant