Skip to content

dannywillems/ocaml-cordova

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ocaml-cordova

Build Status

Binding to the cordova object available here 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?

opam install cordova

Example

An example is available here