Awesome
ocaml-cordova-plugin-barcodescanner
Binding to cordova-plugin-barcodescanner
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
- if you added ocaml-cordova-plugin-list as opam package provider, you can use
opam install cordova-plugin-barcode-scanner
- Else, you can use opam by pinning the repository with
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