pointmobile_scanner_advanced 0.0.2 copy "pointmobile_scanner_advanced: ^0.0.2" to clipboard
pointmobile_scanner_advanced: ^0.0.2 copied to clipboard

A Flutter plugin to manage Scanner for Pointmobile devices. You can scan barcodes, get barcode information and customize built-in scanner settings through code. This package also offers catching clipb [...]

Pointmobile Scanner Advanced GitHub stars #

Pointmobile Scanner Advanced is a feature-rich plugin to manage Scanner settings and configurations for Pointmobile devices

Before Use #

Import package

import 'package:pointmobile_scanner_advanced/pointmobile_scanner_advanced.dart';

Usage #

Initialize scanner first

  • Parameterless function sets ResultType to "userMessage"
  await PMScanner.initScanner();
  • If you want to use another ResultType you can set it by passing ResultType parameter and also change it later
  await PMScanner.initScanner(resultType: ResultType.clipboardKeycodePaste);

! If you want to use ClipboardKeycodePast this package also offers to catch copied barcode number to the Clipboard. See below for details.

Catching Scanned Barcodes #

  • Set onDecode function to your custom function (onDecode function defaults to null)
  PMScanner.onDecode = _onDecode;
  • If you set ResultType to ResultType.clipboardKeycodePaste and wanna be able to get scanned barcode
// TO LISTEN
  await PMUtils.listenClipboard();
// TO STOP LISTENING
  await PMUtils.stopListeningClipboard();
// TO CLEAR CLIPBOARD
  await PMUtils.clearClipboard();
// TO CLEAR CLIPBOARD WITHOUT LISTENING
  await PMUtils.clearClipboardWithoutListening();
  • Your custom function
  void _onDecode(String symbology, String barcodeNumber) {
    print("$symbology --- $barcodeNumber");
  }

CONFIGURING SCANNER SETTINGS #

Pointmobile Scanner Advanced package offers many amount of functions to configure scanner settings. Here are some of them:

    await PMScanner.setDecodeMode(decodeMode: DecodeMode.fixedFocus);
    await PMScanner.setBeepEnabled(beepEnabled: true);
    await PMScanner.resetAllSettingsToDefault();
    final decodeDelay = await PMScanner.getDecodeDelay();
    final barcodeScanNumber = await PMScanner.getNumberOfBarcodesToScan();
  • For more please see the PMScanner class.

#

3
likes
0
points
47
downloads

Publisher

verified publisherkorayliman.com

Weekly Downloads

A Flutter plugin to manage Scanner for Pointmobile devices. You can scan barcodes, get barcode information and customize built-in scanner settings through code. This package also offers catching clipboard changes in order to get scanned barcode information via Clipboard ResultType.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on pointmobile_scanner_advanced