Binding to cordova-plugin-barcodescanner
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
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
See the official documentation cordova-plugin-barcodescanner