/** * Function that returns the options object. * @callback jibo.bt.behaviors.ReadBarcode~onBarcode * @param {string|null} error `null` if no error. * @param {Object} data The result of the barcode if one is found. * @param {number} data.type The type of barcode found. The types are 0 (EAN8), 1 (UPCE), 2 (ISBN10), 3 (UPCA), 4 (EAN13), * 5 (ISBN13), 6 (Interleaved 2 of 5), 7 (Code 39), 8 (PDF417), 9 (QR-Code), 10 (Code 128). * @param {String} data.content The payload of the detected barcode. */ /** * @class ReadBarcode * @extends jibo.bt.Behavior * @memberof jibo.bt.behaviors * @description Makes Jibo take a photo and search for a barcode or QR code in that image. * @param {Object} options See {@link jibo.bt.Behavior|Behavior} for all options. * @param {jibo.bt.behaviors.ReadBarcode~onBarcode} options.onBarcode Called after Jibo takes a picture. The results are passed to this function. */