suspendScanner method

Future<void> suspendScanner({
  1. String? commandTag,
  2. bool requestResult = true,
})

Suspends the scanner plugin (temporarily disables scanning).

Call resumeScanner to re-enable scanning.

Implementation

Future<void> suspendScanner({
  String? commandTag,
  bool requestResult = true,
}) {
  return scannerInputPlugin(
    DataWedgeScannerInputAction.suspendPlugin,
    commandTag: commandTag ?? 'SUSPEND_SCANNER_PLUGIN',
    requestResult: requestResult,
  );
}