Socket
Socket
Sign inDemoInstall

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

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Firebase ML Kit Barcode Scanner Plugin


Version published
Weekly downloads
12
increased by50%
Maintainers
1
Install size
119 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 11 Sep 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc