Binding to cordova-plugin-file-opener
This plugin defines a global navigator.file-opener object, which provides an API for
taking pictures and for choosing images from the system's image library.
Source: cordova-plugin-file-opener
Only gen_js_api version is provided.
The binding has not been tested but it compiles.
Don't forget to switch to a compiler >= 4.03.0.
opam switch 4.03.0
You can use opam by pinning the repository with
opam pin add cordova-plugin-file-opener https://github.com/dannywillems/ocaml-cordova-plugin-file-opener.git
and to compile your project, use
ocamlfind ocamlc -c -o [output_file] -package gen_js_api -package cordova-plugin-file-opener [...] -linkpkg [other arguments]
Don't forget to install the cordova plugin file opener with
cordova plugin add cordova-plugin-file-opener2
See the official documentation: cordova-plugin-file-opener