Scanner Streams
scannerDidEnter$
Section titled “scannerDidEnter$”Triggers when the default scanner’s route is entered.
import { scannerDidEnter$ } from '@shopgate/engage/scanner';
subscribe(scannerDidEnter$, ({ action, dispatch, getState, prevState, events }) => { // The code you want to perform when the stream triggers.})scannerFinished$
Section titled “scannerFinished$”Triggers when the scanner finishes scanning something.
import { scannerFinished$ } from '@shopgate/engage/scanner';
subscribe(scannerFinished$, ({ action, dispatch, getState, prevState, events }) => { // The code you want to perform when the stream triggers.})scannerFinishedBarCode$
Section titled “scannerFinishedBarCode$”Triggers when the scanner completes a barcode scan.
import { scannerFinishedBarCode$ } from '@shopgate/engage/scanner';
subscribe(scannerFinishedBarCode$, ({ action, dispatch, getState, prevState, events }) => { // The code you want to perform when the stream triggers.})scannerFinishedQrCode$
Section titled “scannerFinishedQrCode$”Triggers when the scanner completes a QR code scan.
import { scannerFinishedQrCode$ } from '@shopgate/engage/scanner';
subscribe(scannerFinishedQrCode$, ({ action, dispatch, getState, prevState, events }) => { // The code you want to perform when the stream triggers.})
