Home

Awesome

ocaml-cordova-plugin-barcodescanner

LGPL-v3 licensed Build Status

Binding to cordova-plugin-barcodescanner

Example application.

What does cordova-plugin-barcodescanner do ?

This plugin defines a global navigator.barcodescanner object, which provides an API for
taking pictures and for choosing images from the system's image library.

Source: cordova-plugin-barcodescanner

How to install and compile your project by using this plugin ?

Don't forget to switch to a compiler >= 4.03.0.

opam switch 4.03.0
opam install cordova-plugin-barcode-scanner
opam pin add cordova-plugin-barcode-scanner https://github.com/dannywillems/ocaml-cordova-plugin-barcode-scanner.git

and to compile your project, use

ocamlfind ocamlc -c -o [output_file] -package gen_js_api -package cordova-plugin-barcode-scanner [...] -linkpkg [other arguments]

Don't forget to install cordova-plugin-barcodescanner with

cordova plugin add cordova-plugin-barcodescanner

How to use ?

See the official documentation cordova-plugin-barcodescanner