I would like to know if you know how to get the text obtained from a QR code reading, in X.Forms, the problem is that I do not understand the code very well, the Device.BeginInovke ... confuses me:
private async void escanearQR()
{
// Página que escanea códigos
var scannerPage = new ZXingScannerPage();
// Título de la página
await Navigation.PushAsync(scannerPage);
// Resultado del escaner
scannerPage.OnScanResult += (resultado) =>
{
// Detener escaneo del dispositivo
scannerPage.IsScanning = false;
Device.BeginInvokeOnMainThread(async () =>
{
await Navigation.PopAsync();
// return resultado.text ?????
});
};
}