When the QR Code is set to a invalid value, the invalid event will be triggred. The event contains information such as
In addition, the isValid method returns a boolean indicating the validity of the QR Code.