2.1.1 • Published 8 months ago

cordova-plugin-firebase-ml-kit-barcode-scanner v2.1.1

Weekly downloads
5
License
MIT
Repository
github
Last release
8 months ago

cordova-plugin-firebase-ml-kit-barcode-scanner

Purpose of this Project

Enable cordova / phonegap to scan barcodes using Firebase ML Kit

Installation

You will need to place your GoogleService-Info.plist and google-services.json files in the root directory of your cordova project.

cordova plugin add cordova-plugin-firebase-ml-kit-barcode-scanner

Usage

To call the plugin first get default scan settings from cordova.plugins.scanner.getDefaultSettings(). Then call cordova.plugins.scanner.startScanning().

var settings = cordova.plugins.scanner.getDefaultSettings();

cordova.plugins.scanner.startScanning(
  p_Result => {
    alert(p_Result);
  }, 
  p_Error => {
    throw p_Error
  }, 
  settings
);

Output

startScanning() returns a string with the scan result.

2.1.1

8 months ago

2.1.0

8 months ago

2.0.0

2 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago