Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dannywillems/ocaml-cordova
Create your own Cordova plugin in OCaml
https://github.com/dannywillems/ocaml-cordova
Last synced: about 1 month ago
JSON representation
Create your own Cordova plugin in OCaml
- Host: GitHub
- URL: https://github.com/dannywillems/ocaml-cordova
- Owner: dannywillems
- License: lgpl-3.0
- Created: 2016-02-20T20:08:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-02-08T20:46:36.000Z (almost 4 years ago)
- Last Synced: 2024-05-02T01:50:47.332Z (7 months ago)
- Language: OCaml
- Homepage:
- Size: 15.6 KB
- Stars: 9
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ocaml-cordova
[![Build Status](https://travis-ci.org/dannywillems/ocaml-cordova.svg?branch=master)](https://travis-ci.org/dannywillems/ocaml-cordova)
Binding to the *cordova* object available
[here](https://github.com/apache/cordova-js) in the src directory.This binding provides you some functions to create easily listener for Cordova
like the deviceready event.## Available bindings
* Cordova.platform_id: get the platform id.
* Cordova.platform_version: get the platform version.
* Cordova.version: get the Cordova version.
* Cordova.Event: module for Cordva events.
* add_event_listener: add a listener on *volume buttons*, *deviceready*,
*backbutton*, etc. Use a sum type to have type checking.
* device_ready: alias to ```add_event_listener Device_ready```. **You need to
use it for all your Cordova projects using plugins because they are only
available when this event is handled**.## How to install?
```Shell
opam install cordova
```## Example
An example is available
[here](https://github.com/dannywillems/ocaml-cordova-example)