pauseScanning method
Temporarily suspends the barcode scanning process, pausing the camera feed without completely stopping the scanning session.
Example usage:
await _barkoder.pauseScanning();
print('Scanning paused');
Implementation
Future<void> pauseScanning() {
if (_isBarkoderViewNotMounted) {
return Future.error(PlatformException(
code: BarkoderErrors.barkoderViewNotMounted,
message: BarkoderErrors.barkodeViewNotMountedDesc));
}
_clearScanningResultsStreamSubscription();
return _methodChannel.invokeMethod('pauseScanning');
}