Hello, I would like to know if it is possible to wait for a B4XPages (QrCode Reader) page to finish and then obtain the result.
The first thing I do is load the page that reads in qrcode
Private Sub ButtonQrOrigen_Click
B4XPages.ShowPage("Qr Code Reader")
Dim Resultado As String = QRC_Reader.Resultado
Log($"Resultado ${Resultado}"$)
End Sub
As we know, all the code of the function is executed without waiting for the result
When the reader captures the text and the FoundBarcode function is executed, the page closes with the line B4XPages.ClosePage(Me)
Private Sub FoundBarcode (msg As String)
lblResult.Text = msg
toast.Show($"Found [Color=Blue][b][plain]${msg}[/plain][/b][/Color]"$)
B4XPages.ClosePage(Me)
End Sub
As the title says, is it possible to wait for the page Disappear, unload, etc or not?
I need to show the qr code reader several times. Is it possible to do it as a Wait? If not, how else do you suggest I do it?