resetScan()
Re-initialize the camera settings after a scan is complete to optimized settings for subsequent scans.
AilaCordovaPlugin.resetScan()
Returns
Promise that resolves when the camera is reset.
Example
window.addEventListener('rawScanData', (event) => {
console.log('Scanned:', event.scanText);
// Process the scan
processScanData(event.scanText);
// Reset for next scan in multi-scan mode
AilaCordovaPlugin.resetScan()
.then(() => {
console.log('Ready for next scan');
});
});
Notes
- Recommended for use when scanning multiple barcodes in multi-scan mode
- Resets camera focus and exposure settings for optimal scanning
- Call after processing each scan result for best performance
Related
- scanStart - Start scanning
- multiScanMode constant - Enable multi-scan mode