switchScannerByIdentifier method

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

Switches to a scanner by its identifier string.

scannerIdentifier is the scanner identifier (e.g., DataWedgeScannerIdentifier.internalImager, DataWedgeScannerIdentifier.bluetoothRs6000).

Implementation

Future<void> switchScannerByIdentifier(
  String scannerIdentifier, {
  String? commandTag,
  bool requestResult = true,
}) {
  return sendCommand(
    command: DataWedgeApi.switchScannerEx,
    value: scannerIdentifier,
    commandTag: commandTag ?? 'SWITCH_SCANNER_$scannerIdentifier',
    requestResult: requestResult,
  );
}