enableScanner method

Future<Result<void, FlutterDatawedgeException>> enableScanner(
  1. bool enable,
  2. {String? commandIdentifier}
)

Enable or Disable the scanner temporarily Can be called anytime, but slower than activateScanner see also: activateScanner Zebra API Doc: https://zebra-techdocs-archive.netlify.app/datawedge/11-3/guide/api/scannerinputplugin/

Implementation

Future<Result<void, FlutterDatawedgeException>> enableScanner(
  bool enable, {
  String? commandIdentifier,
}) =>
    _sendDataWedgeCommand(
      DatawedgeApiTargets.scannerPlugin,
      enable
          ? ScannerPluginCommand.enablePlugin
          : ScannerPluginCommand.disablePlugin,
      commandIdentifier: commandIdentifier,
    );