KeyboardBarcode
KeyboardBarcode.register(callback, options);Parameter
Type
Description
Property
Type
Description
Example
/* The following function registers a callback to listen for scans that start with a `.` and ends with a ` `, and sets the timeout time to 3 seconds.
The callback receives the `barcode` value as text, and in this example appends it to a view variable called `view.results`.
*/
function register() {
KeyboardBarcode.register(function(barcode) {
view.results += barcode + '\n';
}, {start: '.', end: ' ', timeout: 3000});
}Deregistering
Hardware setup
Last updated