BarcodeListener constructor
parameters:
_scanCallback
- required, callback to return results of scanning_scanButtonKeyCode
- required, code for scanning button_otherKeyCallback
- callback for reaction to "others" buttons press_otherKeyCodeList
- list of codes of "others" buttons for which will be called
callback from a parameter_otherKeyCallback
Implementation
BarcodeListener(this._scanCallback, this._scanButtonKeyCode, [this._otherKeyCallback, this._otherKeyCodeList]) {
RawKeyboard.instance.addListener(_keyBoardCallback);
enabled = true;
_scanning = false;
}