/ocaml-cordova-plugin-keyboard

Binding OCaml to cordova-plugin-keyboard using gen_js_api.

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

ocaml-cordova-plugin-keyboard

LGPL-v3 licensed Build Status

Binding to cordova-plugin-keyboard

What does cordova-plugin-keyboard do ?

This plugin provides the Keyboard object which has some functions to customize
and control the keyboard. It also supports the HideKeyboardFormAccessoryBar
(boolean) and KeyboardShrinksView (boolean) preferences in config.xml.

Source: cordova-plugin-keyboard

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

To compile your project, use

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

Don't forget to install cordova-plugin-keyboard with

cordova plugin add cordova-plugin-keyboard

How to use ?