Barcode scanner on the new UI

Hey everybody! I wanted to make an app that includes the barcode scanner on the new UI. I don’t really understand how to use it properly and how to get information from it. Also, I wouldn’t mind getting some help with OCR too, because I’m having some problems with that too.

here is an example - by pressing the button, we read the contents of the QR code
image

That’s with the old User Interface. I’m using the new one. But, I’ve already understood how to use it. Now, I need to figure put how to properly use the OCR to read text:) Would be great if you could help:)