When the barcode 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 barcode.


Event detail:

Validity
Set to invalid value