Hi Ryan,
I am using it for my application and it is great. But do you if there is a way to close it whenever it gets a value from barcode.
Hi Ryan,
I am using it for my application and it is great. But do you if there is a way to close it whenever it gets a value from barcode.
Hi Jiashu, you could remove the component within the listener.
public class ZXingView extends VerticalLayout { ...... zXingVaadin.addValueChangeListener(e->{ remove(zXingVaadin); }); ...... }
Thank you for your reply. Yes,I have already done this. But after I have removed it from the layout, the camera is still being used, is there a way to close it?
Is the demo working as expected? I tried via my phone, the camera stopped on getting a value.
Yes, that's exactly what I want to do. Have you changed something of the demo, if so, can you show me the change, because I don't think it works in this way when I try it before on my browser. Thank you!