Skip to main content

Advanced Configurations

MatrixScan Pick is optimized by default for efficiency, accuracy, and responsiveness. However, there are multiple advanced settings available to further customize MatrixScan Pick to best fit your needs.

BarcodePick Listener

You may want more fine-grained knowledge over the different events happening during the life of the BarcodePick mode, such as when the search starts, pauses, and stops.

To do this, you can directly register a BarcodePickViewListener on the view itself, keeping in mind that these listeners are called from a background thread.

const viewListener = {
didStartScanning(view) {
// The view started scanning
},

didFreezeScanning(view) {
// The view was frozen
},

didPauseScanning(view) {
// The view was paused
},

didStopScanning(view) {
// The view stopped scanning
},
};

barcodePickView.addListener(viewListener);