cordova 0.0.1

Set of externs to use Apache Cordova plugins with Haxe js.

Released 2016-10-10.

To install, run:

haxelib install cordova 0.0.1

See using Haxelib in Haxelib documentation for more information.

Maintainerzabojad
Websitehttps://github.com/tokomlabs/haxe-cordova
Current version0.0.1
StatisticsInstalled 18 times
LicenseMIT
Tags

README.md

Haxe js externs for Apache Cordova / PhoneGap

Compatible with Haxe 3.2+.

List of supported externs

And more to come...

API

Use example with the Camera plugin:

// hybrid app that differenciates cordova builds from web builds
#if cordova
			js.cordova.plugin.Camera.getPicture(

				function(pd : String) {

					// then send pd to server
				},

				function(e : String) {

					// display error to user
				},

				{
					allowEdit : true,
					targetWidth : 400,
					targetHeight : 400
				});
#else
			trace("camera not available on this platform");
#end

Contributions

Those externs can sometimes partially cover their original lib. Do not hesitate to contribute with new externs, updates to existing externs or even better approaches for those externs.