BarcodeListener constructor

BarcodeListener(ScanCallback _scanCallback, int _scanButtonKeyCode, [ KeyCodeCallback _otherKeyCallback, List<int> _otherKeyCodeList ])

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;
}