/ocaml-cordova-plugin-activity-indicator

Binding in OCaml to cordova-plugin-activityindicator using gen_js_api.

Primary LanguageShellGNU Lesser General Public License v3.0LGPL-3.0

ocaml-cordova-plugin-activity-indicator

LGPL-v3 licensed Build Status

Binding to cordova-plugin-activityindicator

What does cordova-plugin-activityindicator do ?

Plugin for Cordova 3.0+ that allows you to show a loading spinner and a message
in your Android/iOS Cordova's app.

Source: cordova-plugin-activityindicator

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-activity-indicator
  • Else, you can use opam by pinning the repository with
opam pin add cordova-plugin-activity-indicator https://github.com/dannywillems/ocaml-cordova-plugin-activityindicator.git

To compile your project, use

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

Don't forget to install the cordova plugin activity indicator with

cordova plugin add https://github.com/Initsogar/cordova-activityindicator

How to use ?