Skip to content

dannywillems/ocaml-cordova-plugin-toast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ocaml-cordova-plugin-toast

LGPL-v3 licensed Build Status

Binding to EddyVerbrugen Cordova_toast plugin.

Example application

What does the toast plugin do ?

This plugin allows you to show a native Cordova_toast (a little text popup) on iOS,
Android and WP8. It's great for showing a non intrusive native notification
which is guaranteed always in the viewport of the browser.

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

You can use opam by pinning the repository with

opam pin add cordova-plugin-toast https://github.com/dannywillems/ocaml-cordova-plugin-toast.git

and to compile your project, use

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

Don't forget to install the cordova plugin toast with

cordova plugin add cordova-plugin-x-toast

How to use it ?

See the official documentation: EddyVerbrugen Cordova_toast plugin

About

Binding in OCaml to EddyVerbrugen Toast plugin using gen_js_api.

Resources

License

Stars

Watchers

Forks

Packages

No packages published