Skip to content

Commit

Permalink
Invoke closeCallback when barcodescanner.stop() is called #116
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Nov 10, 2017
1 parent 6663220 commit 56d6ade
Show file tree
Hide file tree
Showing 5 changed files with 7,071 additions and 4 deletions.
3 changes: 3 additions & 0 deletions demo/app/main-view-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ export class HelloWorldModel extends Observable {
let self = this;
this.barcodeScanner.scan({
reportDuplicates: false,
closeCallback: () => {
console.log("Scanner closed @ " + new Date().getTime());
},
continuousScanCallback: function (result) {
count++;
console.log(result.format + ": " + result.text + " (count: " + count + ")");
Expand Down
Loading

0 comments on commit 56d6ade

Please sign in to comment.